class Contraption::Runner

Public Class Methods

new(options) click to toggle source
# File lib/contraption/runner.rb, line 6
def initialize options
  @options = options
end

Private Instance Methods

handlers() click to toggle source
Calls superclass method Contraption::Orchestrator#handlers
# File lib/contraption/runner.rb, line 15
def handlers
  h = super
  if @options.s3_access_key_id
    h <<
      S3Uploader.new({access_key_id: @options.s3_access_key_id,
                      secret_access_key: @options.s3_secret_access_key},
                      @options.s3_target_bucket,
                      @options.source)
  end
  h
end
source() click to toggle source
# File lib/contraption/runner.rb, line 11
def source
  @source ||= Repository.new @options.source
end