Class: PVN::CommandExecutor
- Inherits:
-
Object
- Object
- PVN::CommandExecutor
- Defined in:
- lib/system/cmdexec.rb
Instance Method Summary collapse
-
#initialize ⇒ CommandExecutor
constructor
A new instance of CommandExecutor.
- #run(cmd) ⇒ Object
Constructor Details
#initialize ⇒ CommandExecutor
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 |