Class: SVNx::Command

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

Direct Known Subclasses

CatCommand, InfoCommand, LogCommand, StatusCommand

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Command

Returns a new instance of Command.



59
60
61
# File 'lib/svnx/command.rb', line 59

def initialize args
  @args = args
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



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

def output
  @output
end

Instance Method Details

#command_lineObject



63
64
65
# File 'lib/svnx/command.rb', line 63

def command_line
  raise "must be implemented"
end

#executeObject



67
68
69
70
71
# File 'lib/svnx/command.rb', line 67

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