Skip to content
Newer
Older
100644 21 lines (17 sloc) 580 Bytes
1f24cde @zenchild initial commit
authored
1 module CapistranoWinRM
2 def self.included(base)
3 base.send(:alias_method, :winrm, :winrm_run)
4 end
5
6 def winrm_run(cmd, options={}, &block)
7 set :winrm_running, true
8 options[:shell] = false
9 block ||= self.class.default_io_proc
10 tree = Capistrano::Command::Tree.new(self) { |t| t.else(cmd, &block) }
11 run_tree(tree, options)
12 set :winrm_running, false
13 end
14 end # CapistranoWinRM
15
16 Capistrano::Configuration.send(:include, CapistranoWinRM)
17
18 require 'winrm_connection'
19 require 'capistrano_winrm/command'
20 require 'capistrano_winrm/configuration/connections'
Something went wrong with that request. Please try again.