Class: RubyAem::Bundle

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_aem/bundle.rb

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(client, name) ⇒ Object

Initialise a bundle.

Parameters:

  • client

    RubyAem::Client

  • name

    the bundle’s name, e.g. com.adobe.cq.social.cq-social-forum



26
27
28
29
30
31
# File 'lib/ruby_aem/bundle.rb', line 26

def initialize(client, name)
  @client = client
  @info = {
    name: name
  }
end

Instance Method Details

#startObject

Start a bundle.

Returns:

  • RubyAem::Result



36
37
38
# File 'lib/ruby_aem/bundle.rb', line 36

def start
  @client.call(self.class, __callee__.to_s, @info)
end

#stopObject

Stop a bundle.

Returns:

  • RubyAem::Result



43
44
45
# File 'lib/ruby_aem/bundle.rb', line 43

def stop
  @client.call(self.class, __callee__.to_s, @info)
end