class RubyAem::Resources::Bundle

Bundle class contains API calls related to managing an AEM bundle.

Public Class Methods

new(client, name) click to toggle source

Initialise a bundle.

@param client RubyAem::Client @param name the bundle's name, e.g. com.adobe.cq.social.cq-social-forum @return new RubyAem::Resources::Bundle instance

# File lib/ruby_aem/resources/bundle.rb, line 24
def initialize(client, name)
  @client = client
  @call_params = {
    name: name
  }
end

Public Instance Methods

start() click to toggle source

Start a bundle.

@return RubyAem::Result

# File lib/ruby_aem/resources/bundle.rb, line 34
def start
  @client.call(self.class, __callee__.to_s, @call_params)
end
stop() click to toggle source

Stop a bundle.

@return RubyAem::Result

# File lib/ruby_aem/resources/bundle.rb, line 41
def stop
  @client.call(self.class, __callee__.to_s, @call_params)
end