Class: SVNx::CachingCommandLine
- Inherits:
-
System::CachingCommandLine
- Object
- System::CommandLine
- System::CachingCommandLine
- SVNx::CachingCommandLine
- Defined in:
- lib/svnx/command.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from System::CommandLine
Instance Method Summary collapse
-
#initialize(subcmd, args = Array.new) ⇒ CachingCommandLine
constructor
A new instance of CachingCommandLine.
- #uses_xml? ⇒ Boolean
Methods inherited from System::CachingCommandLine
cache_dir, #cache_dir, cache_dir=, #cache_file, #execute
Methods inherited from System::CommandLine
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
35 36 37 |
# File 'lib/svnx/command.rb', line 35 def uses_xml? true end |