Class: DockerRailsProxy::DataBags::Push
- Inherits:
-
DockerRailsProxy::DataBags
- Object
- Base
- AwsCli
- DockerRailsProxy::DataBags
- DockerRailsProxy::DataBags::Push
- Defined in:
- lib/docker_rails_proxy/commands/data_bags/push.rb
Constant Summary
Constants inherited from DockerRailsProxy::DataBags
Constants included from Callbacks
Callbacks::INHERITABLE_CALLBACKS, Callbacks::UNINHERITABLE_CALLBACKS
Instance Attribute Summary
Attributes inherited from DockerRailsProxy::DataBags
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 Method Details
#process ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/docker_rails_proxy/commands/data_bags/push.rb', line 22 def process if system " aws s3 sync '\#{options[:folder]}' '\#{options[:bucket_path]}' \\\n --delete \\\n --exact-timestamps \\\n \#{exclude_args} \\\n --profile '\#{options[:profile]}' \\\n --sse aws:kms\n EOS\n\n logger.info \"Data bags pushed from \#{options[:folder]} to \#{options[:bucket_path]}\"\n end\nend\n" |