Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fixes issue with template not found because of root_path #9

Merged
merged 1 commit into from

3 participants

@rhino232

This fixes issue #8

The current version generates the following error message when trying to generate a scheduled task from templates

Could not find "/home/andi/.rvm/gems/ruby-1.9.3-p0@taclom/gems/scheduler_daemon-1.1.2/lib/scheduler_daemon/rails/generators/scheduler_task/templates/scheduled_tasks/example_task.rb" in any of your source paths. Please invoke SchedulerTaskGenerator.source_root(PATH) with the PATH containing your templates. Currently you have no source paths.

@ssoroka ssoroka merged commit 53d1062 into ssoroka:master
@BooVeMan

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 18, 2012
  1. @rhino232
This page is out of date. Refresh to see the latest.
View
4 lib/scheduler_daemon/rails/generators/scheduler_task/scheduler_task_generator.rb
@@ -6,6 +6,10 @@ def create_task
readme(File.join(template_dir, 'README'))
end
+ def self.source_root
+ File.dirname(File.expand_path(__FILE__))
+ end
+
private
def source_dir
File.join(template_dir, 'scheduled_tasks')
Something went wrong with that request. Please try again.