lib/ops_preflight/client.rb in ops_preflight-1.2.1 vs lib/ops_preflight/client.rb in ops_preflight-1.3.0
- old
+ new
@@ -21,11 +21,13 @@
def setup(rails_env)
run "bundle exec mina setup RAILS_ENV=#{rails_env} #{Config.new.client_args(rails_env)} #{mina_args}", :verbose => false
end
desc "deploy <rails_env>", "Deploys to the configured app"
+ option :ember, type: :boolean, default: false
+ option :ember_only, type: :boolean, default: false
def deploy(rails_env)
- run "bundle exec mina deploy RAILS_ENV=#{rails_env} #{Config.new.client_args(rails_env)} #{mina_args}", :verbose => false
+ run "bundle exec mina deploy RAILS_ENV=#{rails_env} DEPLOY_EMBER=#{options[:ember]} EMBER_ONLY=#{options[:ember_only]} #{Config.new.client_args(rails_env)} #{mina_args}", :verbose => false
end
# Fixes thor's banners when used with :default namespace
def self.banner(command, namespace = nil, subcommand = false)
"#{basename} #{command.formatted_usage(self, false, subcommand)}"