Class: VagrantPlugins::CapistranoPush::Push
- Inherits:
-
Object
- Object
- VagrantPlugins::CapistranoPush::Push
- Defined in:
- lib/vagrant-capistrano-push/push.rb
Instance Method Summary collapse
Instance Method Details
#push ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/vagrant-capistrano-push/push.rb', line 8 def push # Capistrano is not part of the current Vagrant bundle, so it needs to run # in the context of the system. Vagrant::Util::Env.with_clean_env do result = Vagrant::Util::Subprocess.execute( 'bash', '-c', config.inline, :workdir => @env.root_path.to_s, :notify => [:stdout, :stderr] ) if result.exit_code != 0 raise Errors::CommandFailed, cmd: config.inline, workdir: @env.root_path.to_s, stdout: result.stdout, stderr: result.stderr end result end end |