Class: RubyAem::Resources::Bundle

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_aem/resources/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



24
25
26
27
28
29
# File 'lib/ruby_aem/resources/bundle.rb', line 24

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

Instance Method Details

#startObject

Start a bundle.

Returns:

  • RubyAem::Result



34
35
36
# File 'lib/ruby_aem/resources/bundle.rb', line 34

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

#stopObject

Stop a bundle.

Returns:

  • RubyAem::Result



41
42
43
# File 'lib/ruby_aem/resources/bundle.rb', line 41

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