Class: RapperLite::Tasks
- Inherits:
-
Object
- Object
- RapperLite::Tasks
- Defined in:
- lib/tasks.rb
Overview
Rake tasks for building / refreshing packages
Instance Method Summary collapse
-
#initialize(namespace = :rapper) {|config| ... } ⇒ Tasks
constructor
Set up rapper asset packaging Rake tasks.
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`.
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 |