Sha256: d701e6896241b869ff53d635f1c390bce48add7f4be7d1938084eb3af3057492

Contents?: true

Size: 711 Bytes

Versions: 8

Compression:

Stored size: 711 Bytes

Contents

require "opsicle/deploy_helper"

module Opsicle
  class Deploy
    include DeployHelper
    attr_reader :client

    def initialize(environment)
      @environment = environment
      @client = Client.new(environment)
    end

    def execute(options={ monitor: true })
      Output.say "Starting OpsWorks deploy..."

      #so this is how to format the command arguments:
      #http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/OpsWorks/Client.html#create_deployment-instance_method
      command_args = {}
      command_args["migrate"] = [options[:migrate].to_s] if options[:migrate]
      response = client.run_command('deploy', command_args)

      launch_stack_monitor(response, options)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
opsicle-0.8.2 lib/opsicle/commands/deploy.rb
opsicle-0.8.1 lib/opsicle/commands/deploy.rb
opsicle-0.8.0 lib/opsicle/commands/deploy.rb
opsicle-0.7.1 lib/opsicle/commands/deploy.rb
opsicle-0.7.0 lib/opsicle/commands/deploy.rb
opsicle-0.6.0 lib/opsicle/commands/deploy.rb
opsicle-0.5.1 lib/opsicle/commands/deploy.rb
opsicle-0.5.0 lib/opsicle/commands/deploy.rb