Class: Totem::ShellCmds::Console

Inherits:
Base
  • Object
show all
Defined in:
lib/totem/shell_cmds/console.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Totem::ShellCmds::Base

Instance Method Details

#runObject



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/totem/shell_cmds/console.rb', line 6

def run
  env_path = 'config/environment.rb'
  if File.exists?(env_path)
    load(env_path)
  else
    puts "Unable to find #{env_path}.  You must run this command from your project root directory."
    exit
  end

  ARGV.clear
  IRB.start
end