Class: SimpleExecutor
Overview
Copyright 2008-2010 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Instance Method Summary collapse
Instance Method Details
#exec(cmd) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/simple_executor.rb', line 5 def exec(cmd) puts(cmd) if ! system(cmd) then raise RuntimeError, "Command failed." end end |