Class: Pulley::Publisher

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

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Publisher

Returns a new instance of Publisher.



79
80
81
# File 'lib/pulley.rb', line 79

def initialize client
  @client = client
end

Instance Method Details

#publish_updates(reqs) ⇒ Object



83
84
85
86
87
88
# File 'lib/pulley.rb', line 83

def publish_updates reqs
  reqs.each do |req|
    next unless req['modified']
    @client.update_pull_request(req['number'], req['title'], req['body'])
  end
end