Class: Dip::Commands::Console::Start

Inherits:
Dip::Command show all
Defined in:
lib/dip/commands/console.rb

Instance Method Summary collapse

Methods inherited from Dip::Command

exec_program, exec_subprocess

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