Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

fixes issue with template not found because of root_path #9

Merged
merged 1 commit into from about 2 years ago

3 participants

Andi Birrer BooVeMan Steven Soroka
Andi Birrer

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.

Steven Soroka ssoroka merged commit 53d1062 into from
Steven Soroka ssoroka closed this
BooVeMan

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 18, 2012
Andi Birrer rhino232 Update lib/scheduler_daemon/rails/generators/scheduler_task/scheduler…
…_task_generator.rb
f45e5ea
This page is out of date. Refresh to see the latest.
4 lib/scheduler_daemon/rails/generators/scheduler_task/scheduler_task_generator.rb
@@ -6,6 +6,10 @@ def create_task
6 6 readme(File.join(template_dir, 'README'))
7 7 end
8 8
  9 + def self.source_root
  10 + File.dirname(File.expand_path(__FILE__))
  11 + end
  12 +
9 13 private
10 14 def source_dir
11 15 File.join(template_dir, 'scheduled_tasks')

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.