Class: Fuey::Inspections::Support::ShellCommand
- Inherits:
-
Object
- Object
- Fuey::Inspections::Support::ShellCommand
- Defined in:
- lib/fuey_client/fuey/inspections/support/shell_command.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(command) ⇒ ShellCommand
constructor
A new instance of ShellCommand.
Constructor Details
#initialize(command) ⇒ ShellCommand
Returns a new instance of ShellCommand.
5 6 7 |
# File 'lib/fuey_client/fuey/inspections/support/shell_command.rb', line 5 def initialize(command) @command = command end |
Instance Method Details
#execute ⇒ Object
9 10 11 |
# File 'lib/fuey_client/fuey/inspections/support/shell_command.rb', line 9 def execute %x(#{@command}) end |