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

Methods included from GCloud

#gcloud, included, #verify

Methods included from Config::CLIArgs

check, #cli_args, cli_args, included, load, valid_resources

Methods included from Config::Project

load, #project, 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

included, #shell

Class Method Details

.exists?Boolean

unprivileged exists? method for use by non-billing accounts

Returns:



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

.updateObject



20
21
22
23
# File 'lib/gclouder/resources/project.rb', line 20

def self.update
  header
  Local.ensure
end