Class: Dip::Commands::Console::Start
- Inherits:
-
Dip::Command
- Object
- Dip::Command
- Dip::Commands::Console::Start
- Defined in:
- lib/dip/commands/console.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(shell: nil) ⇒ Start
constructor
A new instance of Start.
Methods inherited from Dip::Command
Constructor Details
#initialize(shell: nil) ⇒ Start
Returns a new instance of Start.
33 34 35 |
# File 'lib/dip/commands/console.rb', line 33 def initialize(shell: nil) @shell = Console.detect_shell(shell) end |
Instance Method Details
#execute ⇒ Object
37 38 39 |
# File 'lib/dip/commands/console.rb', line 37 def execute puts fish? ? fish_script : posix_script end |