Class: SVNx::Command
- Inherits:
-
Object
- Object
- SVNx::Command
- Includes:
- Logue::Loggable
- Defined in:
- lib/svnx/base/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.
63 64 65 |
# File 'lib/svnx/base/command.rb', line 63 def initialize args @args = args end |
Instance Attribute Details
#output ⇒ Object (readonly)
Returns the value of attribute output.
61 62 63 |
# File 'lib/svnx/base/command.rb', line 61 def output @output end |
Instance Method Details
#command_line ⇒ Object
67 68 69 |
# File 'lib/svnx/base/command.rb', line 67 def command_line raise "must be implemented" end |
#execute ⇒ Object
71 72 73 74 75 |
# File 'lib/svnx/base/command.rb', line 71 def execute cmdline = command_line cmdline.execute @output = cmdline.output end |