Class: Mina::Runner::Printer

Inherits:
Object
  • Object
show all
Includes:
Helpers::Output
Defined in:
lib/mina/runner/printer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers::Output

#color, #print_command, #print_error, #print_info, #print_line, #print_status, #print_stderr, #print_stdout

Constructor Details

#initialize(script) ⇒ Printer

Returns a new instance of Printer


8
9
10
# File 'lib/mina/runner/printer.rb', line 8

def initialize(script)
  @script = script
end

Instance Attribute Details

#scriptObject (readonly)

Returns the value of attribute script


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

def script
  @script
end

Instance Method Details

#runObject


12
13
14
15
# File 'lib/mina/runner/printer.rb', line 12

def run
  puts script
  true
end