Skip to content

Commit

Permalink
Merge pull request #228 from pdrakeweb/CPD-2106
Browse files Browse the repository at this point in the history
Add interactive / no-interactive option to the deploy command.
  • Loading branch information
jamesiarmes committed Jun 13, 2017
2 parents c856631 + cb06551 commit f5dbfd0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/moonshot/commands/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ class Deploy < Moonshot::Command
self.usage = 'deploy VERSION'
self.description = 'Deploy a versioned release to the environment'

def parser
parser = super

parser.on('--[no-]interactive', TrueClass, 'Use interactive prompts.') do |v|
Moonshot.config.interactive = v
end
end

def execute(version_name)
controller.deploy_version(version_name)
end
Expand Down

0 comments on commit f5dbfd0

Please sign in to comment.