Class: RubyAem::Resources::Bundle
- Inherits:
-
Object
- Object
- RubyAem::Resources::Bundle
- Defined in:
- lib/ruby_aem/resources/bundle.rb
Overview
Bundle class contains API calls related to managing an AEM bundle.
Instance Method Summary collapse
-
#initialize(client, name) ⇒ Object
constructor
Initialise a bundle.
-
#start ⇒ Object
Start a bundle.
-
#stop ⇒ Object
Stop a bundle.
Constructor Details
#initialize(client, name) ⇒ Object
Initialise a bundle.
27 28 29 30 31 32 |
# File 'lib/ruby_aem/resources/bundle.rb', line 27 def initialize(client, name) @client = client @call_params = { name: name } end |
Instance Method Details
#start ⇒ Object
Start a bundle.
37 38 39 |
# File 'lib/ruby_aem/resources/bundle.rb', line 37 def start @client.call(self.class, __callee__.to_s, @call_params) end |
#stop ⇒ Object
Stop a bundle.
44 45 46 |
# File 'lib/ruby_aem/resources/bundle.rb', line 44 def stop @client.call(self.class, __callee__.to_s, @call_params) end |