Class: DockerRailsProxy::Stack::Create
- Inherits:
-
DockerRailsProxy::Stack
- Object
- Base
- AwsCli
- DockerRailsProxy::Stack
- DockerRailsProxy::Stack::Create
- Defined in:
- lib/docker_rails_proxy/commands/stack/create.rb
Constant Summary collapse
- YML_EXTENSIONS =
%w(.yml .yaml).freeze
Constants inherited from DockerRailsProxy::Stack
Constants included from Callbacks
Callbacks::INHERITABLE_CALLBACKS, Callbacks::UNINHERITABLE_CALLBACKS
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#outputs ⇒ Object
Returns the value of attribute outputs.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
Attributes inherited from DockerRailsProxy::Stack
Attributes inherited from Base
#additional_arguments, #additional_arguments_options, #arguments
Instance Method Summary collapse
Methods inherited from Base
build_path, call, command, execute, #initialize
Methods included from Logger
Methods included from Rsync
Methods included from Callbacks
Methods included from InheritableAttributes
Constructor Details
This class inherits a constructor from DockerRailsProxy::Base
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
10 11 12 |
# File 'lib/docker_rails_proxy/commands/stack/create.rb', line 10 def data @data end |
#outputs ⇒ Object
Returns the value of attribute outputs.
10 11 12 |
# File 'lib/docker_rails_proxy/commands/stack/create.rb', line 10 def outputs @outputs end |
#parameters ⇒ Object
Returns the value of attribute parameters.
10 11 12 |
# File 'lib/docker_rails_proxy/commands/stack/create.rb', line 10 def parameters @parameters end |
Instance Method Details
#process ⇒ Object
63 64 65 66 67 68 69 70 71 72 |
# File 'lib/docker_rails_proxy/commands/stack/create.rb', line 63 def process system <<-EOS aws cloudformation create-stack \ --stack-name '#{[:stack_name]}' \ --parameters #{parameters.join(' ')} \ --template-body 'file://#{[:jsonfile]}' \ --capabilities 'CAPABILITY_IAM' \ --profile '#{[:profile]}' EOS end |