Sha256: d5ad3922f26dacc9a3e7fe66ac549951058f4eea0017e3007c36a4c20a615eaf

Contents?: true

Size: 496 Bytes

Versions: 4

Compression:

Stored size: 496 Bytes

Contents

desc 'Start development console'
task console: :"application:configure" do
  require 'pry'
  puts "** @application: #{@application.class.name_version}, used modules: #{Mimi.used_modules.join(', ')}"
  puts '** run "Mimi.start" to start modules' unless Mimi.used_modules.empty?
  Pry.start
end

namespace :console do
  desc 'Run development console in debug mode'
  task :debug do
    Mimi::Logger.configure(level: :debug)
    ENV['log_level'] = 'debug'
    Rake::Task['console'].invoke
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mimi-0.1.4 lib/tasks/console.rake
mimi-0.1.3 lib/tasks/console.rake
mimi-0.1.1 lib/tasks/console.rake
mimi-0.1.0 lib/tasks/console.rake