Top Level Namespace
Defined Under Namespace
Modules: BardRake
Instance Method Summary collapse
-
#bundler_used? ⇒ Boolean
clear out rails 2.3’s gems tasks if bundler is used for the current project.
- #invoke_task_if_exists(task_name) ⇒ Object
- #is_rails_2? ⇒ Boolean
Instance Method Details
#bundler_used? ⇒ Boolean
clear out rails 2.3’s gems tasks if bundler is used for the current project
2 3 4 |
# File 'lib/bard/rake/bundler.rb', line 2 def bundler_used? File.exist? "Gemfile" end |
#invoke_task_if_exists(task_name) ⇒ Object
53 54 55 |
# File 'lib/bard/rake/bootstrap.rb', line 53 def invoke_task_if_exists task_name Rake::Task[task_name].invoke if Rake::Task.task_defined? task_name end |
#is_rails_2? ⇒ Boolean
6 7 8 |
# File 'lib/bard/rake/bundler.rb', line 6 def is_rails_2? Rake::Task.tasks.include?(:gems) end |