Add a simple `lotus console` command

`lotus console` will spawn an IRB (or Pry, if bundled) session that
loads the application code. This is a very basic analogue to `rails
console` and would be nice for testing out code ideas or modifying the
database.

Signed-off-by: David Celis <me@davidcel.is>
ehehe true. Instead of flushing all `$:` we can `reject! {|path|
path.match(/pry/) }`.


On Thu, Jul 3, 2014 at 5:09 PM, David Celis <notifications@github.com>
wrote:

> In test/commands_console_test.rb:
>
> > +  let(:opts) { Hash.new }
> > +
> > +  before do
> > +    @console = Lotus::Commands::Console.new(opts)
> > +  end
> > +
> > +  describe '#options' do
> > +    it 'merges in default values' do
> > +      @console.options[:config].must_equal 'config.ru'
> > +    end
> > +  end
> > +
> > +  describe '#start' do
> > +    before do
> > +      @rack_builder = Minitest::Mock.new
> > +      @rack_builder.expect(:parse_file, true, ['config.ru'])
>
> Ha, I actually thought about doing that myself. I think this will be the
> code that keeps me up at night... But, what the heck, I'll try it out.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/lotus/lotus/pull/37/files#r14518559>.
>