Class: Kongfigure::Synchronizers::Plugin
- Inherits:
-
Base
- Object
- Base
- Kongfigure::Synchronizers::Plugin
show all
- Defined in:
- lib/kongfigure/synchronizers/plugin.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
Instance Method Details
#load_all_remote_resources ⇒ Object
4
5
6
7
8
9
10
11
12
|
# File 'lib/kongfigure/synchronizers/plugin.rb', line 4
def load_all_remote_resources
remote_resources = if parent_resource.nil?
super.select do |resource|
resource.is_global?
end
else
super
end
end
|
#resource_api_name ⇒ Object
18
19
20
|
# File 'lib/kongfigure/synchronizers/plugin.rb', line 18
def resource_api_name
"plugins"
end
|
#resource_module ⇒ Object
#synchronize(resource) ⇒ Object
22
23
24
|
# File 'lib/kongfigure/synchronizers/plugin.rb', line 22
def synchronize(resource)
synchronize_resource(resource)
end
|