Module: GClouder::Resources::Compute::ProjectInfo::Key
- Includes:
- Config::Project, GCloud
- Defined in:
- lib/gclouder/resources/compute/project_info/ssh_keys.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
.ensure(list) ⇒ Object
163 164 165 166 |
# File 'lib/gclouder/resources/compute/project_info/ssh_keys.rb', line 163 def self.ensure(list) list = list.join("\n") if list.is_a?(Array) gcloud("compute project-info add-metadata --metadata sshKeys=\"#{list}\"") end |