Module: CompassIntegrator::Tasks

Defined in:
lib/compass_integrator/tasks.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configObject (readonly)

Returns the value of attribute config.



23
24
25
# File 'lib/compass_integrator/tasks.rb', line 23

def config
  @config
end

Class Method Details

.load(config) ⇒ Object



26
27
28
29
30
# File 'lib/compass_integrator/tasks.rb', line 26

def self.load(config)
  @config = config
  tasks_path = File.join(File.dirname(__FILE__), "tasks")
  Dir["#{tasks_path}/*.rake"].each { |ext| ::Kernel.load(ext, true) } if defined?(::Rake)
end