Class: CfScript::Config::Runtime
- Inherits:
-
Object
- Object
- CfScript::Config::Runtime
- Defined in:
- lib/cf_script/config.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#echo_output ⇒ Object
Returns the value of attribute echo_output.
-
#executor ⇒ Object
Returns the value of attribute executor.
-
#trace ⇒ Object
Returns the value of attribute trace.
Instance Method Summary collapse
- #default_executor ⇒ Object
-
#initialize ⇒ Runtime
constructor
A new instance of Runtime.
Constructor Details
#initialize ⇒ Runtime
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
#color ⇒ Object
Returns the value of attribute color.
45 46 47 |
# File 'lib/cf_script/config.rb', line 45 def color @color end |
#echo_output ⇒ Object
Returns the value of attribute echo_output.
48 49 50 |
# File 'lib/cf_script/config.rb', line 48 def echo_output @echo_output end |
#executor ⇒ Object
Returns the value of attribute executor.
47 48 49 |
# File 'lib/cf_script/config.rb', line 47 def executor @executor end |
#trace ⇒ Object
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_executor ⇒ Object
58 59 60 |
# File 'lib/cf_script/config.rb', line 58 def default_executor CfScript::Executor::Simple.new end |