Class: Opsworks::Deploy::Deployment
- Inherits:
-
Object
- Object
- Opsworks::Deploy::Deployment
- Defined in:
- lib/opsworks/deploy/deploy.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#deployment ⇒ Object
readonly
Returns the value of attribute deployment.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #deploy ⇒ Object
-
#initialize(options, client = AWS.ops_works.client) ⇒ Deployment
constructor
A new instance of Deployment.
Constructor Details
#initialize(options, client = AWS.ops_works.client) ⇒ Deployment
Returns a new instance of Deployment.
35 36 37 38 39 40 41 42 |
# File 'lib/opsworks/deploy/deploy.rb', line 35 def initialize(, client = AWS.ops_works.client) @options = { migrate: true, wait: false, env: nil }.merge() @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
33 34 35 |
# File 'lib/opsworks/deploy/deploy.rb', line 33 def client @client end |
#deployment ⇒ Object (readonly)
Returns the value of attribute deployment.
33 34 35 |
# File 'lib/opsworks/deploy/deploy.rb', line 33 def deployment @deployment end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
33 34 35 |
# File 'lib/opsworks/deploy/deploy.rb', line 33 def @options end |
Instance Method Details
#deploy ⇒ Object
44 45 46 47 48 |
# File 'lib/opsworks/deploy/deploy.rb', line 44 def deploy @deployment = client.create_deployment(arguments) puts @deployment.inspect wait_on_deployment if [:wait] end |