Class: Google::Apis::OsconfigV1beta::SoftwareRecipeStepRunScript
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::SoftwareRecipeStepRunScript
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/osconfig_v1beta/classes.rb,
generated/google/apis/osconfig_v1beta/representations.rb,
generated/google/apis/osconfig_v1beta/representations.rb
Overview
Runs a script through an interpreter.
Instance Attribute Summary collapse
-
#allowed_exit_codes ⇒ Array<Fixnum>
Return codes that indicate that the software installed or updated successfully.
-
#interpreter ⇒ String
The script interpreter to use to run the script.
-
#script ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SoftwareRecipeStepRunScript
constructor
A new instance of SoftwareRecipeStepRunScript.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SoftwareRecipeStepRunScript
Returns a new instance of SoftwareRecipeStepRunScript.
2431 2432 2433 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2431 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_exit_codes ⇒ Array<Fixnum>
Return codes that indicate that the software installed or updated successfully.
Behaviour defaults to [0]
Corresponds to the JSON property allowedExitCodes
2417 2418 2419 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2417 def allowed_exit_codes @allowed_exit_codes end |
#interpreter ⇒ String
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.
Corresponds to the JSON property interpreter
2424 2425 2426 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2424 def interpreter @interpreter end |
#script ⇒ String
Required. The shell script to be executed.
Corresponds to the JSON property script
2429 2430 2431 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2429 def script @script end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2436 2437 2438 2439 2440 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 2436 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 |