Class: PVN::CommandExecutor

Inherits:
Object
  • Object
show all
Defined in:
lib/system/cmdexec.rb

Instance Method Summary collapse

Constructor Details

#initializeCommandExecutor

Returns a new instance of CommandExecutor.



6
7
# File 'lib/system/cmdexec.rb', line 6

def initialize
end

Instance Method Details

#run(cmd) ⇒ Object



9
10
11
# File 'lib/system/cmdexec.rb', line 9

def run cmd
  IO.popen(cmd).readlines
end