lib/tasks/mack_tasks.rake in mack-0.4.7 vs lib/tasks/mack_tasks.rake in mack-0.5.0
- old
+ new
@@ -1,19 +1,16 @@
namespace :mack do
desc "Loads the Mack environment. Default is development."
task :environment do
- MACK_ENV = ENV["MACK_ENV"] ||= "development" unless Object.const_defined?("MACK_ENV")
- MACK_ROOT = FileUtils.pwd unless Object.const_defined?("MACK_ROOT")
- require 'mack'
- # require File.join(MACK_ROOT, "config", "boot.rb")
+ require File.join(File.dirname(__FILE__), '..', 'mack')
end # environment
desc "Loads an irb console allow you full access to the application w/o a browser."
task :console do
libs = []
libs << "-r irb/completion"
- libs << "-r #{File.join(File.dirname(__FILE__), '..', 'mack')}"
+ # libs << "-r #{File.join(File.dirname(__FILE__), '..', 'mack')}"
libs << "-r #{File.join(File.dirname(__FILE__), '..', 'initialization', 'console')}"
exec "irb #{libs.join(" ")} --simple-prompt"
end # console
end # mack