Module: Command
- Defined in:
- lib/db_helper/command.rb
Instance Method Summary collapse
Instance Method Details
#command(command_text) ⇒ Object
2 3 4 5 6 7 |
# File 'lib/db_helper/command.rb', line 2 def command(command_text) puts "#{command_text}" res = `#{command_text}` raise "Command Failed: #{command_text}" unless $?.success? res end |