Class: EmberCliDeployRedis::Application

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameObject

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_revisionObject



14
15
16
# File 'lib/ember_cli_deploy_redis/application.rb', line 14

def latest_revision
  EmberCliDeployRedis::Revision.latest_from_redis(self)
end

#revisionsObject



10
11
12
# File 'lib/ember_cli_deploy_redis/application.rb', line 10

def revisions
  EmberCliDeployRedis::RevisionList.from_redis(self)
end