Class: Mina::Runner::Exec

Inherits:
Object
  • Object
show all
Defined in:
lib/mina/runner/exec.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(script) ⇒ Exec


6
7
8
# File 'lib/mina/runner/exec.rb', line 6

def initialize(script)
  @script = script
end

Instance Attribute Details

#scriptObject (readonly)

Returns the value of attribute script


4
5
6
# File 'lib/mina/runner/exec.rb', line 4

def script
  @script
end

Instance Method Details

#runObject


10
11
12
# File 'lib/mina/runner/exec.rb', line 10

def run
  Kernel.exec(script)
end