Module: Kube::Cluster::ScriptCommands

Included in:
Kube::Cluster
Defined in:
lib/kube/cluster/script_command.rb

Instance Method Summary collapse

Instance Method Details

#BashScript(*strings) ⇒ Object



6
# File 'lib/kube/cluster/script_command.rb', line 6

def BashScript(*strings)   = ['bash', '-exc', *strings]

#PythonScript(*strings) ⇒ Object



7
# File 'lib/kube/cluster/script_command.rb', line 7

def PythonScript(*strings) = ['python3', '-c', *strings]

#RubyScript(*strings) ⇒ Object



8
# File 'lib/kube/cluster/script_command.rb', line 8

def RubyScript(*strings)   = ['ruby', '-e', *strings]

#ShScript(*strings) ⇒ Object



9
# File 'lib/kube/cluster/script_command.rb', line 9

def ShScript(*strings)     = ['sh', '-exc', *strings]