Class: Deployments::Dispatcher
- Inherits:
-
Object
- Object
- Deployments::Dispatcher
- Defined in:
- lib/deployments/dispatcher.rb
Instance Attribute Summary collapse
-
#build ⇒ Object
readonly
Returns the value of attribute build.
Instance Method Summary collapse
-
#initialize(build) ⇒ Dispatcher
constructor
A new instance of Dispatcher.
- #run ⇒ Object
Constructor Details
#initialize(build) ⇒ Dispatcher
Returns a new instance of Dispatcher.
7 8 9 |
# File 'lib/deployments/dispatcher.rb', line 7 def initialize(build) @build = build end |
Instance Attribute Details
#build ⇒ Object (readonly)
Returns the value of attribute build.
5 6 7 |
# File 'lib/deployments/dispatcher.rb', line 5 def build @build end |
Instance Method Details
#run ⇒ Object
11 12 13 14 15 |
# File 'lib/deployments/dispatcher.rb', line 11 def run c = Curl::Easy.http_post(Deployments..server, fields) c.response_code.to_i == 200 end |