Class: Embarista::GenerateS3IndexTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Embarista::GenerateS3IndexTask
- Defined in:
- lib/embarista/tasks/generate_s3_index.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
Returns the value of attribute app.
-
#assets_bucket ⇒ Object
Returns the value of attribute assets_bucket.
-
#erb_path ⇒ Object
Returns the value of attribute erb_path.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name = :generate_s3_index) {|_self| ... } ⇒ GenerateS3IndexTask
constructor
A new instance of GenerateS3IndexTask.
Constructor Details
#initialize(name = :generate_s3_index) {|_self| ... } ⇒ GenerateS3IndexTask
Returns a new instance of GenerateS3IndexTask.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/embarista/tasks/generate_s3_index.rb', line 8 def initialize(name = :generate_s3_index) @name = name @erb_path = "app/index.html.erb" 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/generate_s3_index.rb', line 6 def app @app end |
#assets_bucket ⇒ Object
Returns the value of attribute assets_bucket.
6 7 8 |
# File 'lib/embarista/tasks/generate_s3_index.rb', line 6 def assets_bucket @assets_bucket end |
#erb_path ⇒ Object
Returns the value of attribute erb_path.
6 7 8 |
# File 'lib/embarista/tasks/generate_s3_index.rb', line 6 def erb_path @erb_path end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/embarista/tasks/generate_s3_index.rb', line 6 def name @name end |