def create_job_flow(job, emr_config = nil)
      config = Config.new

      Elasticity.configure do |c|
        c.access_key = config.access_key_id
        c.secret_key = config.secret_access_key
      end

      job_flow = Elasticity::JobFlow.new
      job_flow.name = "Job: #{job.job_name} #{job.job_desc}"
      job_flow.log_uri = job.log_uri

      configure_job_flow(job_flow)
      configure_instances(job_flow)
      configure_bootstrap_actions(job_flow, emr_config)

      job_flow
    end
def create_job_flow(job, emr_config = nil)
      config = Config.new

      Elasticity.configure do |c|
        c.access_key = config.access_key_id
        c.secret_key = config.secret_access_key
      end

      job_flow = Elasticity::JobFlow.new
      job_flow.name = "Job: #{job.job_name} #{job.job_desc}"
      job_flow.log_uri = job.log_uri

      configure_job_flow(job_flow)
      configure_instances(job_flow)
      configure_bootstrap_actions(job_flow, emr_config)

      job_flow
    end
Returns a configured job flow to the calling job.