Class: SVNx::Command

Inherits:
Object
  • Object
show all
Includes:
Logue::Loggable
Defined in:
lib/svnx/base/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Command

Returns a new instance of Command.



47
48
49
# File 'lib/svnx/base/command.rb', line 47

def initialize args
  @args = args
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



45
46
47
# File 'lib/svnx/base/command.rb', line 45

def output
  @output
end

Instance Method Details

#command_lineObject



51
52
53
# File 'lib/svnx/base/command.rb', line 51

def command_line
  raise "must be implemented"
end

#executeObject



55
56
57
58
59
# File 'lib/svnx/base/command.rb', line 55

def execute
  cmdline = command_line
  cmdline.execute
  @output = cmdline.output
end