Class: Forcast::Tasks::Railtie

Inherits:
Object
  • Object
show all
Defined in:
lib/forcast/tasks/all.rb

Class Method Summary collapse

Class Method Details

.load_all_tasksObject



10
11
12
13
# File 'lib/forcast/tasks/all.rb', line 10

def self.load_all_tasks
  path = File.expand_path(__dir__)
			Dir.glob("#{path}/**/*.rake").each { |t| load t}
end

.tasksObject



4
5
6
7
8
9
# File 'lib/forcast/tasks/all.rb', line 4

def self.tasks
  path = File.expand_path(__dir__)
			arr = Dir.glob("#{path}/**/*.rake")
			puts arr
			return arr
end