Class: Svnx::Base::EntriesCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/svnx/base/command.rb

Instance Attribute Summary collapse

Attributes inherited from Command

#error, #options, #output, #status

Instance Method Summary collapse

Methods inherited from Command

caching, noncaching

Constructor Details

#initialize(options, cls: Command::Cacheable::Command, exec: nil, caching: caching?, , xml: true, entries_class: nil) ⇒ EntriesCommand

Returns a new instance of EntriesCommand.



63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/svnx/base/command.rb', line 63

def initialize options, cls: Command::Cacheable::Command, exec: nil, caching: caching?, xml: true, entries_class: nil
  super options, cls: cls, exec: exec, xml: xml, caching: caching
  
  if not @output.empty?
    entries_class ||= begin
                        modl = ClassUtil.find_module self.class
                        modl::Entries
                      end
    
    @entries = entries_class.new lines: @output
  end
end

Instance Attribute Details

#entriesObject (readonly)

Returns the value of attribute entries.



61
62
63
# File 'lib/svnx/base/command.rb', line 61

def entries
  @entries
end