Module: GClouder::Resources::Storage::Buckets
- Includes:
- Config::Project, Logging, GClouder::Resource::Cleaner, Shell
- Defined in:
- lib/gclouder/resources/storage/buckets.rb
Defined Under Namespace
Modules: Bucket, Local, Remote
Class Method Summary collapse
Methods included from Config::Project
Methods included from Helpers
#hash_to_args, included, #module_exists?, #to_arg, #to_deep_merge_hash, #valid_json?
Methods included from Logging
#add, #bad, #change, #debug, #error, #fatal, #good, included, #info, log, loggers, #remove, report, #resource_state, setup, #warn, #warning
Methods included from GClouder::Resource::Cleaner
#clean, #cleaner, included, #undefined
Methods included from Shell
Class Method Details
.ensure ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/gclouder/resources/storage/buckets.rb', line 22 def self.ensure return if Local.list.empty? header Local.list.each do |region, region_config| info region, heading: true, indent: 2 region_config.each do |bucket| info Bucket.ensure(region, bucket) end end end |
.header(stage = :ensure) ⇒ Object
12 13 14 |
# File 'lib/gclouder/resources/storage/buckets.rb', line 12 def self.header(stage = :ensure) info "[#{stage}] storage / buckets", title: true, indent: 1 end |