Class: Google::Cloud::Batch::V1::Runnable::Script
- Inherits:
-
Object
- Object
- Google::Cloud::Batch::V1::Runnable::Script
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/batch/v1/task.rb
Overview
Script runnable.
Instance Attribute Summary collapse
-
#path ⇒ ::String
Script file path on the host VM.
-
#text ⇒ ::String
Shell script text.
Instance Attribute Details
#path ⇒ ::String
Returns Script file path on the host VM.
To specify an interpreter, please add a #!<interpreter>(also known as
shebang line) as the
first line of the file.(For example, to execute the script using bash,
#!/bin/bash should be the first line of the file. To execute the
script usingPython3, #!/usr/bin/env python3 should be the first
line of the file.) Otherwise, the file will by default be executed by
/bin/sh.
319 320 321 322 |
# File 'proto_docs/google/cloud/batch/v1/task.rb', line 319 class Script include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#text ⇒ ::String
Returns Shell script text.
To specify an interpreter, please add a #!<interpreter>\n at the
beginning of the text.(For example, to execute the script using bash,
#!/bin/bash\n should be added. To execute the script usingPython3,
#!/usr/bin/env python3\n should be added.) Otherwise, the script will
by default be executed by /bin/sh.
319 320 321 322 |
# File 'proto_docs/google/cloud/batch/v1/task.rb', line 319 class Script include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |