template/lib/tasks/larva_spawn.rake in larva-0.6.1 vs template/lib/tasks/larva_spawn.rake in larva-0.6.2

- old
+ new

@@ -1,13 +1,27 @@ \ No newline at end of file +namespace :larva_spawn do + task :start do + config_dir = File.expand_path('../../../config', __FILE__) + logfile = "./log/larva_spawn.log" + options = { + meducation_sdk_secret_key: ENV['LARVA_SPAWN_API_KEY'], + env: ENV['ENV'], + config_dir: config_dir, + logfile: logfile + } + LarvaSpawn::Daemon.start(options) + end +end +