Module: GClouder::Resources::Logging::Sinks::Sink
- Includes:
- GCloud
- Defined in:
- lib/gclouder/resources/logging/sinks.rb
Class Method Summary collapse
Methods included from GCloud
Methods included from Config::CLIArgs
check, #cli_args, cli_args, included, load, valid_resources
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 Shell
Class Method Details
.args(sink) ⇒ Object
83 84 85 |
# File 'lib/gclouder/resources/logging/sinks.rb', line 83 def self.args(sink) "#{sink['destination']} " + hash_to_args(sink.delete_if { |k| k == "destination" }) end |
.ensure(sink) ⇒ Object
87 88 89 |
# File 'lib/gclouder/resources/logging/sinks.rb', line 87 def self.ensure(sink) Resource.ensure :"beta logging sinks", sink["name"], args(sink) end |