class Google::Apis::OndemandscanningV1beta1::Command
Command
describes a step performed as part of the build pipeline.
Attributes
Command-line arguments used when executing this command. Corresponds to the JSON property `args` @return [Array<String>]
Working directory (relative to project source root) used when running this command. Corresponds to the JSON property `dir` @return [String]
Environment variables set before running this command. Corresponds to the JSON property `env` @return [Array<String>]
Optional unique identifier for this command, used in wait_for
to reference this command as a dependency. Corresponds to the JSON property `id` @return [String]
Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. Corresponds to the JSON property `name` @return [String]
The ID(s) of the command(s) that this command depends on. Corresponds to the JSON property `waitFor` @return [Array<String>]
Public Class Methods
# File lib/google/apis/ondemandscanning_v1beta1/classes.rb, line 499 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/ondemandscanning_v1beta1/classes.rb, line 504 def update!(**args) @args = args[:args] if args.key?(:args) @dir = args[:dir] if args.key?(:dir) @env = args[:env] if args.key?(:env) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @wait_for = args[:wait_for] if args.key?(:wait_for) end