tags:

views:

25

answers:

0

how do you include merb in thor tasks? In rails rake tasks we use something like

task :import_assets => :environment do

which makes it possible to load models inside tasks, but how is this done using thor and merb?

desc 'booh', 'test datamapper'
def booh  
  Location.new
end

the line above gives me something like:

wikipedia.thor:8:in `booh': uninitialized constant Thor::Sandbox::Wikipedia::Location (NameError)