class Google::Apis::OsconfigV1beta::SoftwareRecipeStepRunScript
Runs a script through an interpreter.
Attributes
allowed_exit_codes[RW]
Return codes that indicate that the software installed or updated successfully. Behaviour defaults to [0] Corresponds to the JSON property `allowedExitCodes` @return [Array<Fixnum>]
interpreter[RW]
The script interpreter to use to run the script. If no interpreter is specified the script is executed directly, which likely only succeed for scripts with [shebang lines](en.wikipedia.org/wiki/Shebang_(Unix)). Corresponds to the JSON property `interpreter` @return [String]
script[RW]
Required. The shell script to be executed. Corresponds to the JSON property `script` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/osconfig_v1beta/classes.rb, line 2058 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/osconfig_v1beta/classes.rb, line 2063 def update!(**args) @allowed_exit_codes = args[:allowed_exit_codes] if args.key?(:allowed_exit_codes) @interpreter = args[:interpreter] if args.key?(:interpreter) @script = args[:script] if args.key?(:script) end