Class: RapperLite::Tasks

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

Overview

Rake tasks for building / refreshing packages

Instance Method Summary collapse

Constructor Details

#initialize(namespace = :rapper) {|config| ... } ⇒ Tasks

Set up rapper asset packaging Rake tasks.

tasks under.

configuration YAML file. ‘:env` is the optional environment. Defaults to `:production`.

Parameters:

  • namespace (Symbol) (defaults to: :rapper)

    The Rake namespace to put the generated

Yields:

  • (config)

    Configuration hash. ‘:path` should be the path to the



14
15
16
17
18
19
20
21
22
# File 'lib/tasks.rb', line 14

def initialize( namespace = :rapper, &block )
  @namespace = namespace
  @config = {
    :path => "rapper.yml"
  }
  yield @config
  @rapper = RapperLite::Engine.new( @config[:path] )
  self.define
end