Class: Embarista::AssetsTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/embarista/tasks/assets.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = :assets) {|_self| ... } ⇒ AssetsTask

Returns a new instance of AssetsTask.

Yields:

  • (_self)

Yield Parameters:



8
9
10
11
12
13
14
15
16
17
# File 'lib/embarista/tasks/assets.rb', line 8

def initialize(name = :assets)
  @name = name

  yield self if block_given?

  @assets_bucket ||= App.assets_bucket

  raise 'app must be set' unless @app
  define
end

Instance Attribute Details

#appObject

Returns the value of attribute app.



6
7
8
# File 'lib/embarista/tasks/assets.rb', line 6

def app
  @app
end

#assets_bucketObject

Returns the value of attribute assets_bucket.



6
7
8
# File 'lib/embarista/tasks/assets.rb', line 6

def assets_bucket
  @assets_bucket
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/embarista/tasks/assets.rb', line 6

def name
  @name
end