Sha256: fcb4ffef2b484e14a0c94cbcac643a5eafec620600a865933385c74f9840fe02

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

module Quandl
module Command
module Tasks
  
  def self.root
    @root ||= File.expand_path(File.join(File.dirname(__FILE__), '../../../'))
  end
  
  def self.each(&block)
    tasks.each{|t| block.call(t) }
  end
  
  def self.tasks
    @tasks ||= []
  end
  
  # require base task
  require 'quandl/command/tasks/base'
  # require tasks
  Dir.glob(File.join(root, 'lib/quandl/command/tasks/*.rb')){|t| require(t) }
end
end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
quandl-0.2.27 lib/quandl/command/tasks.rb
quandl-0.2.26 lib/quandl/command/tasks.rb
quandl-0.2.25 lib/quandl/command/tasks.rb
quandl-0.2.24 lib/quandl/command/tasks.rb