Module: GClouder::Resources::Compute::FirewallRules::Rule

Includes:
GCloud, Helpers, Logging
Defined in:
lib/gclouder/resources/compute/firewall_rules.rb

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

.ensure(rule, args = {}, silent: false) ⇒ Object



71
72
73
# File 'lib/gclouder/resources/compute/firewall_rules.rb', line 71

def self.ensure(rule, args = {}, silent: false)
  Resource.ensure :"compute firewall-rules", rule, hash_to_args(args), silent: silent
end

.purge(rule, silent: false) ⇒ Object



75
76
77
# File 'lib/gclouder/resources/compute/firewall_rules.rb', line 75

def self.purge(rule, silent: false)
  Resource.purge :"compute firewall-rules", rule, silent: silent
end