Class: GreenPepper::RedPepperTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- GreenPepper::RedPepperTask
- Defined in:
- lib/greenpepper/redpeppertask.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#server ⇒ Object
Returns the value of attribute server.
-
#spec_id ⇒ Object
Returns the value of attribute spec_id.
-
#spec_name ⇒ Object
Returns the value of attribute spec_name.
Instance Method Summary collapse
-
#initialize(name, http = Net::HTTP) {|_self| ... } ⇒ RedPepperTask
constructor
A new instance of RedPepperTask.
Constructor Details
#initialize(name, http = Net::HTTP) {|_self| ... } ⇒ RedPepperTask
Returns a new instance of RedPepperTask.
15 16 17 18 19 20 21 22 23 |
# File 'lib/greenpepper/redpeppertask.rb', line 15 def initialize(name, http = Net::HTTP) @name = name @http_client = http @path = 'greenpepper/specifications' yield self if block_given? load_config define end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
13 14 15 |
# File 'lib/greenpepper/redpeppertask.rb', line 13 def path @path end |
#server ⇒ Object
Returns the value of attribute server.
13 14 15 |
# File 'lib/greenpepper/redpeppertask.rb', line 13 def server @server end |
#spec_id ⇒ Object
Returns the value of attribute spec_id.
13 14 15 |
# File 'lib/greenpepper/redpeppertask.rb', line 13 def spec_id @spec_id end |
#spec_name ⇒ Object
Returns the value of attribute spec_name.
13 14 15 |
# File 'lib/greenpepper/redpeppertask.rb', line 13 def spec_name @spec_name end |