Class: Totem::ShellCmds::Console
- Defined in:
- lib/totem/shell_cmds/console.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Totem::ShellCmds::Base
Instance Method Details
#run ⇒ Object
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 |