Class: GreenPepper::GreenPepperConfig
- Inherits:
-
Object
- Object
- GreenPepper::GreenPepperConfig
- Includes:
- Singleton
- Defined in:
- lib/greenpepper/greenpepperconfig.rb
Instance Attribute Summary collapse
-
#greenpepper_path ⇒ Object
GreenPepperTask.
-
#path ⇒ Object
RedPepperTask.
-
#result_dir ⇒ Object
GreenPepperTask.
-
#server ⇒ Object
RedPepperTask.
-
#spec_dir ⇒ Object
GreenPepperTask.
Class Method Summary collapse
- .configure {|GreenPepperConfig.instance| ... } ⇒ Object
- .maybe_set(instance, symbol, config) ⇒ Object
Instance Attribute Details
#greenpepper_path ⇒ Object
GreenPepperTask
5 6 7 |
# File 'lib/greenpepper/greenpepperconfig.rb', line 5 def greenpepper_path @greenpepper_path end |
#path ⇒ Object
RedPepperTask
8 9 10 |
# File 'lib/greenpepper/greenpepperconfig.rb', line 8 def path @path end |
#result_dir ⇒ Object
GreenPepperTask
5 6 7 |
# File 'lib/greenpepper/greenpepperconfig.rb', line 5 def result_dir @result_dir end |
#server ⇒ Object
RedPepperTask
8 9 10 |
# File 'lib/greenpepper/greenpepperconfig.rb', line 8 def server @server end |
#spec_dir ⇒ Object
GreenPepperTask
5 6 7 |
# File 'lib/greenpepper/greenpepperconfig.rb', line 5 def spec_dir @spec_dir end |
Class Method Details
.configure {|GreenPepperConfig.instance| ... } ⇒ Object
10 11 12 |
# File 'lib/greenpepper/greenpepperconfig.rb', line 10 def self.configure yield GreenPepperConfig.instance end |
.maybe_set(instance, symbol, config) ⇒ Object
14 15 16 17 |
# File 'lib/greenpepper/greenpepperconfig.rb', line 14 def self.maybe_set(instance, symbol, config) value = config.instance_variable_get(symbol) instance.instance_variable_set symbol, value if value end |