Class: Deploy::S3::State

Inherits:
Object
  • Object
show all
Defined in:
lib/deploy/s3/state.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


9
10
11
# File 'lib/deploy/s3/state.rb', line 9

def exists?
  target_bucket.exists?
end

#targetObject



17
18
19
# File 'lib/deploy/s3/state.rb', line 17

def target
  target_bucket.name
end

#versionObject



13
14
15
# File 'lib/deploy/s3/state.rb', line 13

def version
  @version ||= version_select
end