Class: Noodle::Rake::NoodleTask

Inherits:
Rake::TaskLib
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/noodle.rb

Overview

Rake tasks for setting up .NET dependencies.

Four tasks are defined:

  • noodle:copy - copy the lib directories from the gems to the local project.

  • noodle:clean - remove the local lib directory.

  • noodle:update - clean, then copy.

  • noodle - alias of noodle:copy.

Examples:

Gemfile

source :rubygems
group :dotnet do
  gem 'structuremap'
end

Rakefile

Noodle::Rake::NoodleTask.new :customname do |n|
  n.groups << :dotnet # only use the bundler :dotnet group
  n.outdir = 'someplace-other-than-lib'
  n.merge! # merge all the libs together
end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = :noodle) {|noodle| ... } ⇒ NoodleTask

Define noodle’s rake tasks.

Yields:

  • (noodle)

Yield Parameters:

  • noodle (NoodleTask)

    the noodle task generator.



99
100
101
102
103
104
# File 'lib/noodle.rb', line 99

def initialize name = :noodle
  @noodler = Noodler.new
  @name    = name
  yield self if block_given?
  define
end

Instance Attribute Details

#nameString

The name of the rake task to generate.

Defaults to :noodle.

Returns:

  • (String)


88
89
90
# File 'lib/noodle.rb', line 88

def name
  @name
end