lib/sprinkle/actors/local.rb in lachlan-sprinkle-0.0.8 vs lib/sprinkle/actors/local.rb in lachlan-sprinkle-0.0.9
- old
+ new
@@ -17,9 +17,10 @@
#
class Local
def process(name, commands, roles, suppress_and_return_failures = false) #:nodoc:
commands.each do |command|
+ command = "cmd.exe /c " + command if RUBY_PLATFORM =~ /win32/
system command
return false if $?.to_i != 0
end
return true
end