Skip to content

Commit

Permalink
Bundle exec shadow_puppet
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles committed Jun 24, 2012
1 parent 7512bc6 commit 469ca93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/moonshine/capistrano_integration.rb
Expand Up @@ -118,14 +118,14 @@ def self.load_into(capistrano_config)
upload moonshine_yml_path.to_s, '/tmp/moonshine.yml'
upload File.join(File.dirname(__FILE__), '..', 'moonshine_setup_manifest.rb'), '/tmp/moonshine_setup_manifest.rb'

sudo 'shadow_puppet /tmp/moonshine_setup_manifest.rb'
sudo "#{'bundle exec' if fetch(:bundle_exec_shadow_puppet)} shadow_puppet /tmp/moonshine_setup_manifest.rb"
sudo 'rm /tmp/moonshine_setup_manifest.rb'
sudo 'rm /tmp/moonshine.yml'
end

desc 'Apply the Moonshine manifest for this application'
task :apply, :except => { :no_release => true } do
sudo "RAILS_ROOT=#{latest_release} DEPLOY_STAGE=#{ENV['DEPLOY_STAGE'] || fetch(:stage)} RAILS_ENV=#{fetch(:rails_env)} shadow_puppet #{'--noop' if fetch(:noop)} #{latest_release}/app/manifests/#{fetch(:moonshine_manifest)}.rb"
sudo "RAILS_ROOT=#{latest_release} DEPLOY_STAGE=#{ENV['DEPLOY_STAGE'] || fetch(:stage)} RAILS_ENV=#{fetch(:rails_env)} #{'bundle exec' if fetch(:bundle_exec_shadow_puppet)} shadow_puppet #{'--noop' if fetch(:noop)} #{latest_release}/app/manifests/#{fetch(:moonshine_manifest)}.rb"
end

desc 'Update code and then run a console. Useful for debugging deployment.'
Expand Down

0 comments on commit 469ca93

Please sign in to comment.