class Google::Apis::OndemandscanningV1beta1::Command

Command describes a step performed as part of the build pipeline.

Attributes

args[RW]

Command-line arguments used when executing this command. Corresponds to the JSON property `args` @return [Array<String>]

dir[RW]

Working directory (relative to project source root) used when running this command. Corresponds to the JSON property `dir` @return [String]

env[RW]

Environment variables set before running this command. Corresponds to the JSON property `env` @return [Array<String>]

id[RW]

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]

name[RW]

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]

wait_for[RW]

The ID(s) of the command(s) that this command depends on. Corresponds to the JSON property `waitFor` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/ondemandscanning_v1beta1/classes.rb, line 499
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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