Class: CfScript::Config::Runtime

Inherits:
Object
  • Object
show all
Defined in:
lib/cf_script/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRuntime

Returns a new instance of Runtime.



50
51
52
53
54
55
56
# File 'lib/cf_script/config.rb', line 50

def initialize
  @trace = ENV['TRACE'] || false
  @color = true

  @executor = default_executor
  @echo_output = true
end

Instance Attribute Details

#colorObject

Returns the value of attribute color.



45
46
47
# File 'lib/cf_script/config.rb', line 45

def color
  @color
end

#echo_outputObject

Returns the value of attribute echo_output.



48
49
50
# File 'lib/cf_script/config.rb', line 48

def echo_output
  @echo_output
end

#executorObject

Returns the value of attribute executor.



47
48
49
# File 'lib/cf_script/config.rb', line 47

def executor
  @executor
end

#traceObject

Returns the value of attribute trace.



44
45
46
# File 'lib/cf_script/config.rb', line 44

def trace
  @trace
end

Instance Method Details

#default_executorObject



58
59
60
# File 'lib/cf_script/config.rb', line 58

def default_executor
  CfScript::Executor::Simple.new
end