Class: Deploy::S3::State
- Inherits:
-
Object
- Object
- Deploy::S3::State
- Defined in:
- lib/deploy/s3/state.rb
Instance Method Summary collapse
- #exists? ⇒ Boolean
-
#initialize(name, app_configs) ⇒ State
constructor
A new instance of State.
- #target ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(name, app_configs) ⇒ State
Returns a new instance of State.
4 5 6 7 |
# File 'lib/deploy/s3/state.rb', line 4 def initialize(name, app_configs) @name = name @app_configs = app_configs end |
Instance Method Details
#exists? ⇒ Boolean
9 10 11 |
# File 'lib/deploy/s3/state.rb', line 9 def exists? target_bucket.exists? end |
#target ⇒ Object
17 18 19 |
# File 'lib/deploy/s3/state.rb', line 17 def target target_bucket.name end |
#version ⇒ Object
13 14 15 |
# File 'lib/deploy/s3/state.rb', line 13 def version @version ||= version_select end |