lib/aws_ec2/hook.rb in aws-ec2-0.5.2 vs lib/aws_ec2/hook.rb in aws-ec2-0.6.0
- old
+ new
@@ -20,10 +20,11 @@
data ? data : {} # in case the file is empty
end
def sh(command)
puts "=> #{command}".colorize(:cyan)
- system(command)
+ success = system(command)
+ abort("Command failed") unless success
end
def self.run(name, options={})
Hook.new(options).run(name.to_s)
end