def configure_bootstrap_actions(job_flow, emr_config = nil)
      bootstrap_scripts = config_setting('bootstrap_scripts')

      if bootstrap_scripts.present?
        bootstrap_scripts.each do |script_uri|
          action = Elasticity::BootstrapAction.new(script_uri, '', '')
          job_flow.add_bootstrap_action(action)
        end
      end

      if emr_config.present?
        action = Elasticity::HadoopFileBootstrapAction.new(emr_config)
        job_flow.add_bootstrap_action(action)
      end
    end
def configure_bootstrap_actions(job_flow, emr_config = nil)
      bootstrap_scripts = config_setting('bootstrap_scripts')

      if bootstrap_scripts.present?
        bootstrap_scripts.each do |script_uri|
          action = Elasticity::BootstrapAction.new(script_uri, '', '')
          job_flow.add_bootstrap_action(action)
        end
      end

      if emr_config.present?
        action = Elasticity::HadoopFileBootstrapAction.new(emr_config)
        job_flow.add_bootstrap_action(action)
      end
    end
Configures bootstrap actions that will be run when each instance is
 launched. EMR config is an XML file of Hadoop settings stored on S3.
 There are applied to each node by a bootstrap action.