Class: Fuey::Inspections::Support::ShellCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/fuey_client/fuey/inspections/support/shell_command.rb

Instance Method Summary collapse

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

#executeObject



9
10
11
# File 'lib/fuey_client/fuey/inspections/support/shell_command.rb', line 9

def execute
  %x(#{@command})
end