Class: RubyAem::Resources::Repository

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

Overview

Repository class contains API calls related to managing an AEM repository.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Object

Initialise repository.

Parameters:

  • client

    RubyAem::Client



26
27
28
29
# File 'lib/ruby_aem/resources/repository.rb', line 26

def initialize(client)
  @client = client
  @call_params = {}
end

Instance Method Details

#block_writesObject

Block repository writes.

Returns:

  • RubyAem::Result



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

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

#unblock_writesObject

Unblock repository writes.

Returns:

  • RubyAem::Result



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

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