Sha256: 7ae9937ce5bc7f7cdb1d2ad71176240c2f92c962995faf4f63c049b99c4a186e
Contents?: true
Size: 495 Bytes
Versions: 8
Compression:
Stored size: 495 Bytes
Contents
require 'susanoo/irb' module Susanoo::CLI module Commands # Provide the `console` command for project wide usage. module Console extend ::ActiveSupport::Concern included do map 'c' => :console desc 'console', 'Run pry in environment of `Susanoo`. ' def console project_root = Susanoo::Project.path require File.join(project_root, 'config/routes') IRB.start_session(binding) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems