Class: Glb::Lb::HealthCheck

Inherits:
Resource show all
Defined in:
lib/glb/lb/health_check.rb

Instance Attribute Summary

Attributes inherited from CLI::Base

#options

Instance Method Summary collapse

Methods inherited from Resource

#action, #config, #default_options, #down, #down_command, #empty_update?, #exist?, #format_option, #gcloud_compute_command, #installed?, #invalid?, #invalid_command?, #region_option, #resource_config, #resource_name, #resource_type, #show, #up, #valid?

Methods included from Names

#backend_service_name, #build_name, #firewall_rule_name, #forwarding_rule_https_name, #forwarding_rule_name, #health_check_name, #network, #target_http_proxy_name, #target_https_proxy_name, #url_map_name

Methods included from Util::Sure

#sure?

Methods inherited from CLI::Base

#initialize, #region

Methods included from Util::Sh

#capture, #sh

Constructor Details

This class inherits a constructor from Glb::CLI::Base

Instance Method Details

#argsObject

Override to add http to the command



9
10
11
# File 'lib/glb/lb/health_check.rb', line 9

def args
  Args.new("health-checks #{action} http", config.health_check).transform
end

#up_commandObject

Override to add http to the command



4
5
6
# File 'lib/glb/lb/health_check.rb', line 4

def up_command
  "gcloud compute health-checks #{action} http #{resource_name} #{args}" if valid?
end