Class: SVNx::CachingCommandLine

Inherits:
System::CachingCommandLine show all
Defined in:
lib/svnx/command.rb

Direct Known Subclasses

LogCommandLineCaching

Instance Attribute Summary

Attributes inherited from System::CommandLine

#output

Instance Method Summary collapse

Methods inherited from System::CachingCommandLine

cache_dir, #cache_dir, cache_dir=, #cache_file, #execute

Methods inherited from System::CommandLine

#<<, #execute, #to_command

Constructor Details

#initialize(subcmd, args = Array.new) ⇒ CachingCommandLine

Returns a new instance of CachingCommandLine.



27
28
29
30
31
32
33
# File 'lib/svnx/command.rb', line 27

def initialize subcmd, args = Array.new
  info "args: #{args}"
  cmdargs << '--xml' if uses_xml?
  cmdargs.concat args
  info "cmdargs: #{cmdargs}"
  super cmdargs
end

Instance Method Details

#uses_xml?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/svnx/command.rb', line 35

def uses_xml?
  true
end