Class: RubyAem::Bundle
- Inherits:
-
Object
- Object
- RubyAem::Bundle
- Defined in:
- lib/ruby_aem/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.
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
#start ⇒ Object
Start a bundle.
36 37 38 |
# File 'lib/ruby_aem/bundle.rb', line 36 def start @client.call(self.class, __callee__.to_s, @info) end |
#stop ⇒ Object
Stop a bundle.
43 44 45 |
# File 'lib/ruby_aem/bundle.rb', line 43 def stop @client.call(self.class, __callee__.to_s, @info) end |