Sha256: 127283a1490b0068d551b65198474d652ec5e37c5536038433f54de62a05b8a8
Contents?: true
Size: 825 Bytes
Versions: 48
Compression:
Stored size: 825 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] command_opts = {} command_opts["custom_json"] = options.delete(:json) if options[:json] response = client.run_command('deploy', command_args, command_opts) launch_stack_monitor(response, options) end end end
Version data entries
48 entries across 48 versions & 1 rubygems