Class: DockerRailsProxy::DataBags::Pull
- Inherits:
-
DockerRailsProxy::DataBags
- Object
- Base
- AwsCli
- DockerRailsProxy::DataBags
- DockerRailsProxy::DataBags::Pull
- Defined in:
- lib/docker_rails_proxy/commands/data_bags/pull.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
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/docker_rails_proxy/commands/data_bags/pull.rb', line 4 def process if system <<-EOS.strip aws s3 sync '#{[:bucket_path]}' '#{[:folder]}' \ --delete \ --exact-timestamps \ #{exclude_args} \ --profile '#{[:profile]}' EOS logger.info "Data bags pulled from #{[:bucket_path]} to #{[:folder]}" end end |