Sha256: d8256ea21e7b30e002f8682f489bcba43e226ede5f3129a9bceffbdce94a7c19

Contents?: true

Size: 777 Bytes

Versions: 4

Compression:

Stored size: 777 Bytes

Contents

# Because we use plugins that are shipped via gems, we lose their rake tasks.
# So here, we find them (if there are any) and include them into rake.
extra_rake_tasks = []
if defined?(Refinery) && Refinery.is_a_gem
  extra_rake_tasks << Dir[Refinery.root.join("vendor", "plugins", "*", "**", "tasks", "**", "*", "*.rake")].sort
end

# We also need to load in the rake tasks from gem plugins whether Refinery is a gem or not:
if $refinery_gem_plugin_lib_paths.present?
  extra_rake_tasks << $refinery_gem_plugin_lib_paths.collect {|path| Dir[File.join(%W(#{path} tasks ** *.rake))].sort}
end

extra_rake_tasks << Dir[Rails.root.join("lib", "refinery", "tasks", "*.rake")]

# Load in any extra tasks that we've found.
extra_rake_tasks.flatten.compact.uniq.each {|rake| load rake }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-0.9.6.18 lib/refinery/tasks/refinery.rb
refinerycms-0.9.6.17 lib/refinery/tasks/refinery.rb
refinerycms-0.9.6.16 lib/refinery/tasks/refinery.rb
refinerycms-0.9.6.15 lib/refinery/tasks/refinery.rb