Class: Kongfigure::Synchronizers::Consumer
- Defined in:
- lib/kongfigure/synchronizers/consumer.rb
Instance Attribute Summary
Attributes inherited from Base
#parent_resource, #remote_resources, #resources
Instance Method Summary collapse
Methods inherited from Base
#cleanup, #create, #find, #initialize, #synchronize_all, #synchronize_plugins, #synchronize_resource, #unchanged, #update
Constructor Details
This class inherits a constructor from Kongfigure::Synchronizers::Base
Instance Method Details
#resource_api_name ⇒ Object
17 18 19 |
# File 'lib/kongfigure/synchronizers/consumer.rb', line 17 def resource_api_name "consumers" end |
#resource_module ⇒ Object
13 14 15 |
# File 'lib/kongfigure/synchronizers/consumer.rb', line 13 def resource_module Kongfigure::Resources::Consumer end |
#synchronize(resource) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/kongfigure/synchronizers/consumer.rb', line 4 def synchronize(resource) super(resource) key_auths_synchronizer = Kongfigure::Synchronizers::Consumers::KeyAuth.new(@http_client, resource.key_auths, resource) key_auths_synchronizer.synchronize_all acls_synchronizer = Kongfigure::Synchronizers::Consumers::ACL.new(@http_client, resource.acls, resource) acls_synchronizer.synchronize_all end |