Class: SVNx::Command
- Inherits:
-
Object
- Object
- SVNx::Command
- Includes:
- Logue::Loggable
- Defined in:
- lib/svnx/command.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
- #command_line ⇒ Object
- #execute ⇒ Object
-
#initialize(args) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(args) ⇒ Command
Returns a new instance of Command.
65 66 67 |
# File 'lib/svnx/command.rb', line 65 def initialize args @args = args end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
63 64 65 |
# File 'lib/svnx/command.rb', line 63 def output @output end |
Instance Method Details
#command_line ⇒ Object
69 70 71 |
# File 'lib/svnx/command.rb', line 69 def command_line raise "must be implemented" end |
#execute ⇒ Object
73 74 75 76 77 |
# File 'lib/svnx/command.rb', line 73 def execute cmdline = command_line cmdline.execute @output = cmdline.output end |