lib/sprinkle/actors/local.rb in sprinkle-0.1.9 vs lib/sprinkle/actors/local.rb in sprinkle-0.2.1
- old
+ new
@@ -16,10 +16,14 @@
# Note, your local machine will be assumed to be a member of all roles when applying policies
#
class Local
def process(name, commands, roles, suppress_and_return_failures = false) #:nodoc:
- commands.each { |command| system command }
+ commands.each do |command|
+ system command
+ return false if $?.to_i != 0
+ end
+ return true
end
end
end
end