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.
47 48 49 |
# File 'lib/svnx/base/command.rb', line 47 def initialize args @args = args end |
Instance Attribute Details
#output ⇒ Object (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_line ⇒ Object
51 52 53 |
# File 'lib/svnx/base/command.rb', line 51 def command_line raise "must be implemented" end |
#execute ⇒ Object
55 56 57 58 59 |
# File 'lib/svnx/base/command.rb', line 55 def execute cmdline = command_line cmdline.execute @output = cmdline.output end |