Class: Forcast::Tasks::Railtie
- Inherits:
-
Object
- Object
- Forcast::Tasks::Railtie
- Defined in:
- lib/forcast/tasks/all.rb
Class Method Summary collapse
Class Method Details
.load_all_tasks ⇒ Object
10 11 12 13 |
# File 'lib/forcast/tasks/all.rb', line 10 def self.load_all_tasks path = File.(__dir__) Dir.glob("#{path}/**/*.rake").each { |t| load t} end |
.tasks ⇒ Object
4 5 6 7 8 9 |
# File 'lib/forcast/tasks/all.rb', line 4 def self.tasks path = File.(__dir__) arr = Dir.glob("#{path}/**/*.rake") puts arr return arr end |