Module: GClouder::Resources::Project
- Includes:
- Config::Project, GCloud, Logging
- Defined in:
- lib/gclouder/resources/project.rb,
lib/gclouder/resources/project/iam_policy_binding.rb
Defined Under Namespace
Modules: IAMPolicyBinding, Local
Class Method Summary collapse
-
.exists? ⇒ Boolean
unprivileged exists? method for use by non-billing accounts.
- .header(stage = :ensure) ⇒ Object
- .update ⇒ Object
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
.exists? ⇒ Boolean
unprivileged exists? method for use by non-billing accounts
16 17 18 |
# File 'lib/gclouder/resources/project.rb', line 16 def self.exists? Resource.resource?("projects", project["project_id"], filter_key: "project_id", silent: true) end |
.header(stage = :ensure) ⇒ Object
10 11 12 13 |
# File 'lib/gclouder/resources/project.rb', line 10 def self.header(stage = :ensure) info "[#{stage}] project", title: true info end |