Class: EmberCliDeployRedis::Application
- Inherits:
-
Object
- Object
- EmberCliDeployRedis::Application
- Defined in:
- lib/ember_cli_deploy_redis/application.rb
Overview
An application that is deployed and whose revisions can be retrieved.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Application
constructor
A new instance of Application.
- #latest_revision ⇒ Object
- #revisions ⇒ Object
Constructor Details
#initialize(name) ⇒ Application
Returns a new instance of Application.
6 7 8 |
# File 'lib/ember_cli_deploy_redis/application.rb', line 6 def initialize(name) self.name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/ember_cli_deploy_redis/application.rb', line 4 def name @name end |
Instance Method Details
#latest_revision ⇒ Object
14 15 16 |
# File 'lib/ember_cli_deploy_redis/application.rb', line 14 def latest_revision EmberCliDeployRedis::Revision.latest_from_redis(self) end |
#revisions ⇒ Object
10 11 12 |
# File 'lib/ember_cli_deploy_redis/application.rb', line 10 def revisions EmberCliDeployRedis::RevisionList.from_redis(self) end |