Class: Rascal::CLI::Shell

Inherits:
Base
  • Object
show all
Defined in:
lib/rascal/cli/shell.rb

Instance Method Summary collapse

Constructor Details

#initialize(thor, options, environment_name) ⇒ Shell

Returns a new instance of Shell.



6
7
8
9
# File 'lib/rascal/cli/shell.rb', line 6

def initialize(thor, options, environment_name)
  @environment_name = environment_name
  super(thor, options)
end

Instance Method Details

#runObject



11
12
13
# File 'lib/rascal/cli/shell.rb', line 11

def run
  find_environment(@environment_name)&.run_shell
end