Class: Blazing::Config
Instance Attribute Summary collapse
-
#env_script ⇒ Object
Returns the value of attribute env_script.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#rake_task ⇒ Object
Returns the value of attribute rake_task.
-
#targets ⇒ Object
Returns the value of attribute targets.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(configuration_file = nil) ⇒ Config
constructor
A new instance of Config.
- #target(target_name) ⇒ Object
Constructor Details
#initialize(configuration_file = nil) ⇒ Config
Returns a new instance of Config.
11 12 13 14 15 16 |
# File 'lib/blazing/config.rb', line 11 def initialize(configuration_file = nil) @file = configuration_file || Blazing::DEFAULT_CONFIG_LOCATION @targets = [] @rake_task = nil @env_script = nil end |
Instance Attribute Details
#env_script ⇒ Object
Returns the value of attribute env_script.
9 10 11 |
# File 'lib/blazing/config.rb', line 9 def env_script @env_script end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
8 9 10 |
# File 'lib/blazing/config.rb', line 8 def file @file end |
#rake_task ⇒ Object
Returns the value of attribute rake_task.
9 10 11 |
# File 'lib/blazing/config.rb', line 9 def rake_task @rake_task end |
#targets ⇒ Object
Returns the value of attribute targets.
9 10 11 |
# File 'lib/blazing/config.rb', line 9 def targets @targets end |
Class Method Details
Instance Method Details
#target(target_name) ⇒ Object
26 27 28 |
# File 'lib/blazing/config.rb', line 26 def target(target_name) targets.find { |t| t.name.to_s == target_name.to_s } end |