Class: Google::Apis::CloudbuildV2::ExecAction
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::ExecAction
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb
Overview
ExecAction describes a "run in container" action.
Instance Attribute Summary collapse
-
#command ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExecAction
constructor
A new instance of ExecAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExecAction
Returns a new instance of ExecAction.
643 644 645 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 643 def initialize(**args) update!(**args) end |
Instance Attribute Details
#command ⇒ Array<String>
Optional. Command is the command line to execute inside the container, the
working directory for the command is root ('/') in the container's filesystem.
The command is simply exec'd, it is not run inside a shell, so traditional
shell instructions ('|', etc) won't work. To use a shell, you need to
explicitly call out to that shell. Exit status of 0 is treated as live/healthy
and non-zero is unhealthy. +optional
Corresponds to the JSON property command
641 642 643 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 641 def command @command end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
648 649 650 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 648 def update!(**args) @command = args[:command] if args.key?(:command) end |