Class: Svnx::Base::EntriesCommand

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

Instance Attribute Summary collapse

Attributes inherited from Command

#error, #output, #status

Instance Method Summary collapse

Methods inherited from Command

caching, noncaching, #options_class, #read_options, #subcommand

Constructor Details

#initialize(options, cmdlinecls: nil, caching: caching? ) ⇒ EntriesCommand

Returns a new instance of EntriesCommand.



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/svnx/base/entries_command.rb', line 11

def initialize options, cmdlinecls: nil, caching: caching?
  super options, cmdlinecls: cmdlinecls, caching: caching
  
  @entries = if not @output.empty?
               entries_class = begin
                                 modl = ClassUtil.find_module self.class
                                 modl::Entries
                               end
               entries_class.new @output
             end
end

Instance Attribute Details

#entriesObject (readonly)

Returns the value of attribute entries.



9
10
11
# File 'lib/svnx/base/entries_command.rb', line 9

def entries
  @entries
end

Instance Method Details

#xml?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/svnx/base/entries_command.rb', line 23

def xml?
  true
end