mcb - RuntimeError: Rails has not been initialised
timabell opened this issue · 0 comments
timabell commented
What did you do? (steps to reproduce)
be bin/mcb apiv1 providers list -E qa -v
What happened? (actual results)
...
bundler: failed to load command: bin/mcb (bin/mcb)
RuntimeError: Rails has not been initialised
/home/tim/repo/dfe/manage/backend/lib/mcb.rb:130:in `get_recruitment_year'
/home/tim/repo/dfe/manage/backend/lib/mcb.rb:123:in `each_v1_provider'
/home/tim/repo/dfe/manage/backend/lib/mcb/commands/apiv1/providers/list.rb:14:in `block (2 levels) in define'
/home/tim/.rvm/gems/ruby-2.6.1/gems/terminal-table-1.8.0/lib/terminal-table/table.rb:324:in `yield_or_eval'
/home/tim/.rvm/gems/ruby-2.6.1/gems/terminal-table-1.8.0/lib/terminal-table/table.rb:20:in `initialize'
/home/tim/repo/dfe/manage/backend/lib/mcb/commands/apiv1/providers/list.rb:13:in `new'
/home/tim/repo/dfe/manage/backend/lib/mcb/commands/apiv1/providers/list.rb:13:in `block in define'
/home/tim/.rvm/gems/ruby-2.6.1/gems/cri-2.15.9/lib/cri/command.rb:360:in `run_this'
/home/tim/.rvm/gems/ruby-2.6.1/gems/cri-2.15.9/lib/cri/command.rb:296:in `run'
/home/tim/.rvm/gems/ruby-2.6.1/gems/cri-2.15.9/lib/cri/command.rb:314:in `run'
/home/tim/.rvm/gems/ruby-2.6.1/gems/cri-2.15.9/lib/cri/command.rb:314:in `run'
/home/tim/.rvm/gems/ruby-2.6.1/gems/cri-2.15.9/lib/cri/command.rb:314:in `run'
bin/mcb:91:in `<top (required)>'