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



23
24
25
26
# File 'lib/ruby_aem/resources/repository.rb', line 23

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

Instance Method Details

#block_writesObject

Block repository writes.

Returns:

  • RubyAem::Result



31
32
33
# File 'lib/ruby_aem/resources/repository.rb', line 31

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

#unblock_writesObject

Unblock repository writes.

Returns:

  • RubyAem::Result



38
39
40
# File 'lib/ruby_aem/resources/repository.rb', line 38

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