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