Class: Glb::Lb::HealthCheck
- Defined in:
- lib/glb/lb/health_check.rb
Instance Attribute Summary
Attributes inherited from CLI::Base
Instance Method Summary collapse
-
#args ⇒ Object
Override to add http to the command.
-
#up_command ⇒ Object
Override to add http to the command.
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
Methods inherited from CLI::Base
Methods included from Util::Sh
Constructor Details
This class inherits a constructor from Glb::CLI::Base
Instance Method Details
#args ⇒ Object
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_command ⇒ Object
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 |