Class: Shellter::Runners::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/shellter/runners/base.rb

Direct Known Subclasses

Background, Windows

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



4
5
6
# File 'lib/shellter/runners/base.rb', line 4

def initialize(options = {})

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