Module: CapistranoWinRM
- Defined in:
- lib/capistrano_winrm.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 |
# File 'lib/capistrano_winrm.rb', line 2 def self.included(base) base.send(:alias_method, :winrm, :winrm_run) end |
Instance Method Details
#winrm_run(cmd, options = {}, &block) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/capistrano_winrm.rb', line 6 def winrm_run(cmd, ={}, &block) set :winrm_running, true [:shell] = false block ||= self.class.default_io_proc tree = Capistrano::Command::Tree.new(self) { |t| t.else(cmd, &block) } run_tree(tree, ) set :winrm_running, false end |