class PhilColumns::Command::Console

Public Instance Methods

execute() click to toggle source
# File lib/phil_columns/command/console.rb, line 5
def execute
  load_environment
  load_seed_helpers
  start_console
end

Protected Instance Methods

load_seed_helpers() click to toggle source
# File lib/phil_columns/command/console.rb, line 18
def load_seed_helpers
  if defined?( Seeds )
    Seeds::constants.each do |const_name|
      konstant = Seeds::const_get(const_name)
      Object.send( :include, konstant )
    end
  end
end
start_console() click to toggle source
# File lib/phil_columns/command/console.rb, line 13
def start_console
  require 'irb'
  IRB.start
end