lib/acquia_toolbelt/cli/deploy.rb in acquia_toolbelt-2.3.1 vs lib/acquia_toolbelt/cli/deploy.rb in acquia_toolbelt-2.3.2

- old
+ new

@@ -2,13 +2,13 @@ class CLI class Deploy < AcquiaToolbelt::Thor # Public: Deploy a VCS branch or tag. # # Returns a status message. - desc "code", "Deploy a VCS branch or tag to an environment." + desc 'code', 'Deploy a VCS branch or tag to an environment.' method_option :release, :type => :string, :aliases => %w(-r), :required => true, - :desc => "Name of the release to deploy to the environment." + :desc => 'Name of the release to deploy to the environment.' def code if options[:environment].nil? ui.say "No value provided for required options '--environment'" return end @@ -19,12 +19,12 @@ subscription = AcquiaToolbelt::CLI::API.default_subscription end environment = options[:environment] release = options[:release] - data = { :key => "path", :value => "#{release}" } + data = { :key => 'path', :value => "#{release}" } - deploy_code = AcquiaToolbelt::CLI::API.request "sites/#{subscription}/envs/#{environment}/code-deploy", "QUERY-STRING-POST", data + deploy_code = AcquiaToolbelt::CLI::API.request "sites/#{subscription}/envs/#{environment}/code-deploy", 'QUERY-STRING-POST', data if deploy_code["id"] ui.success "#{release} has been deployed to #{environment}." else ui.fail AcquiaToolbelt::CLI::API.display_error(deploy_code)