Class: RidgepoleRake::Command
- Inherits:
-
Object
- Object
- RidgepoleRake::Command
- Includes:
- Brancher::Command, Bundler::Command
- Defined in:
- lib/ridgepole_rake/command.rb
Instance Method Summary collapse
-
#command ⇒ Object
deprecated
Deprecated.
Use #inspect instead
- #execute ⇒ Object
-
#initialize(action, config, options = {}) ⇒ Command
constructor
A new instance of Command.
- #inspect ⇒ Object
Constructor Details
#initialize(action, config, options = {}) ⇒ Command
Returns a new instance of Command.
4 5 6 7 8 9 10 11 |
# File 'lib/ridgepole_rake/command.rb', line 4 def initialize(action, config, = {}) @stash = [] @action = action @config = config @options = build end |
Instance Method Details
#command ⇒ Object
Deprecated.
Use #inspect instead
18 19 20 21 |
# File 'lib/ridgepole_rake/command.rb', line 18 def command Kernel.warn '[DEPRECATION] `RidgepoleRake::Command#command` is deprecated and will be removed' inspect end |
#execute ⇒ Object
13 14 15 |
# File 'lib/ridgepole_rake/command.rb', line 13 def execute Kernel.system(*stash) end |
#inspect ⇒ Object
23 24 25 |
# File 'lib/ridgepole_rake/command.rb', line 23 def inspect stash.join(' ').strip end |