Class: Kongfigure::Synchronizers::Plugin

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from Kongfigure::Synchronizers::Base

Instance Method Details

#load_all_remote_resourcesObject



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_nameObject



18
19
20
# File 'lib/kongfigure/synchronizers/plugin.rb', line 18

def resource_api_name
  "plugins"
end

#resource_moduleObject



14
15
16
# File 'lib/kongfigure/synchronizers/plugin.rb', line 14

def resource_module
  Kongfigure::Resources::Plugin
end

#synchronize(resource) ⇒ Object



22
23
24
# File 'lib/kongfigure/synchronizers/plugin.rb', line 22

def synchronize(resource)
  synchronize_resource(resource)
end