lib/napa/cli.rb in napa-0.2.0 vs lib/napa/cli.rb in napa-0.2.1

- old
+ new

@@ -26,11 +26,14 @@ desc "version", "Shows the Napa version number" def version say Napa::VERSION end - desc 'console', 'Start the Napa console' - def console + desc 'console [environment]', 'Start the Napa console' + options aliases: 'c' + def console(environment = 'development' ) + ENV['RACK_ENV'] = environment + require 'racksh/init' begin require "pry" interpreter = Pry