class Adobe::Aem::Replication
Public Class Methods
new(context)
click to toggle source
# File lib/adobe/aem/replication.rb, line 4 def initialize(context) @context = context end
Public Instance Methods
agents()
click to toggle source
# File lib/adobe/aem/replication.rb, line 8 def agents @context.connector.get('/etc/replication.1.json') end
create_agent(type, name, options = {}, agentType = '')
click to toggle source
AgentyType can be empty for default replication agent, rev for reverse and static for static
# File lib/adobe/aem/replication.rb, line 13 def create_agent(type, name, options = {}, agentType = '') # agent, revagent, staticagent @context.connector.create_page("/etc/replication/#{type}", name, name, "/libs/cq/replication/templates/#{agentType}agent", options) end
delete_agent(type, name)
click to toggle source
# File lib/adobe/aem/replication.rb, line 18 def delete_agent(type, name) @context.connector.delete_page("/etc/replication/#{type}/#{name}") end