Module: Noise

Defined in:
lib/noise.rb,
lib/noise/railtie.rb,
lib/noise/version.rb

Defined Under Namespace

Classes: Railtie

Constant Summary collapse

VERSION =
"0.9.1"

Class Method Summary collapse

Class Method Details

.describe(file) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/noise.rb', line 10

def self.describe(file)
  YAML.load_file(file).each do |task, description|
    if Rake::Task.task_defined?(task)
      Rake::Task[task].add_description(description)
    end
  end
end

.describe_allObject



4
5
6
7
8
# File 'lib/noise.rb', line 4

def self.describe_all
  directory = File.join(File.dirname(__FILE__), "noise", "descriptions")
  files = Dir[File.join(directory, "*.yml")]
  files.each { |file| describe(file) }
end