Class: Command::BaseCommand
- Inherits:
-
Object
- Object
- Command::BaseCommand
- Defined in:
- lib/command/base_command.rb
Direct Known Subclasses
GemInstallCommand, GemInstallToVendorCommand, GemRebuildCommand, GemUninstallCommand, StashGemfileLockCommand
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#rvm_prefix ⇒ Object
readonly
Returns the value of attribute rvm_prefix.
Instance Method Summary collapse
- #cancel ⇒ Object
- #execute ⇒ Object
-
#initialize(rvm_prefix = nil, options = {}) ⇒ BaseCommand
constructor
A new instance of BaseCommand.
- #name ⇒ Object
Constructor Details
#initialize(rvm_prefix = nil, options = {}) ⇒ BaseCommand
Returns a new instance of BaseCommand.
7 8 9 10 |
# File 'lib/command/base_command.rb', line 7 def initialize(rvm_prefix = nil, = {}) @rvm_prefix = rvm_prefix @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/command/base_command.rb', line 5 def @options end |
#rvm_prefix ⇒ Object (readonly)
Returns the value of attribute rvm_prefix.
5 6 7 |
# File 'lib/command/base_command.rb', line 5 def rvm_prefix @rvm_prefix end |
Instance Method Details
#cancel ⇒ Object
16 17 18 |
# File 'lib/command/base_command.rb', line 16 def cancel raise NotImplementedError end |
#execute ⇒ Object
12 13 14 |
# File 'lib/command/base_command.rb', line 12 def execute system(name) or raise Command::ExecuteError end |
#name ⇒ Object
20 21 22 |
# File 'lib/command/base_command.rb', line 20 def name raise NotImplementedError end |