Class: Deployments::Dispatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/deployments/dispatcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#buildObject (readonly)

Returns the value of attribute build.



5
6
7
# File 'lib/deployments/dispatcher.rb', line 5

def build
  @build
end

Instance Method Details

#runObject



11
12
13
14
15
# File 'lib/deployments/dispatcher.rb', line 11

def run
  c = Curl::Easy.http_post(Deployments.options.server, fields)

  c.response_code.to_i == 200
end