Class: Shellter::Runners::Base
- Inherits:
-
Object
- Object
- Shellter::Runners::Base
- Defined in:
- lib/shellter/runners/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #run(command, &block) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
4 5 6 |
# File 'lib/shellter/runners/base.rb', line 4 def initialize( = {}) end |
Instance Method Details
#run(command, &block) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/shellter/runners/base.rb', line 8 def run(command, &block) unless defined?(POpen4) require 'popen4' end POpen4.popen4(command, &block) end |