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>
I'd keep it simple. Remove `fakefs` and add `pry` as development dependency
in `Gemfile` with `require: false`.


On Thu, Jul 3, 2014 at 3:53 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'])
>
> Looks like fakefs doesn't work with things like require or load,
> unfortunately.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/lotus/lotus/pull/37/files#r14514372>.
>