Module: SVNx::CmdLine

Includes:
Logue::Loggable
Included in:
CachingCommandLine, CommandLine
Defined in:
lib/svnx/command.rb

Instance Method Summary collapse

Instance Method Details

#cache_dirObject



33
34
35
# File 'lib/svnx/command.rb', line 33

def cache_dir
  ENV[TMP_DIR_ENV_VARNAME] || DEFAULT_CACHE_DIR
end

#initialize(subcmd, args) ⇒ Object



19
20
21
22
23
24
25
26
27
# File 'lib/svnx/command.rb', line 19

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

#uses_xml?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/svnx/command.rb', line 29

def uses_xml?
  true
end