Class: Embarista::AssetsTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Embarista::AssetsTask
- Defined in:
- lib/embarista/tasks/assets.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#assets_bucket ⇒ Object
Returns the value of attribute assets_bucket.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name = :assets) {|_self| ... } ⇒ AssetsTask
constructor
A new instance of AssetsTask.
Constructor Details
#initialize(name = :assets) {|_self| ... } ⇒ AssetsTask
Returns a new instance of AssetsTask.
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
#app ⇒ Object
Returns the value of attribute app.
6 7 8 |
# File 'lib/embarista/tasks/assets.rb', line 6 def app @app end |
#assets_bucket ⇒ Object
Returns the value of attribute assets_bucket.
6 7 8 |
# File 'lib/embarista/tasks/assets.rb', line 6 def assets_bucket @assets_bucket end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/embarista/tasks/assets.rb', line 6 def name @name end |