class Saklient::Cloud::Enums::EScriptClass

スクリプトのクラスを表す列挙子.

Public Class Methods

ansible() click to toggle source
# File lib/saklient/cloud/enums/escript_class.rb, line 15
def self.ansible
  'ansible'
end
compare(lhs, rhs) click to toggle source

@private

# File lib/saklient/cloud/enums/escript_class.rb, line 20
def self.compare(lhs, rhs)
  return nil if lhs.nil? || rhs.nil?
  l = @@_map[lhs.to_sym]
  r = @@_map[rhs.to_sym]
  return nil if l.nil? || r.nil?
  ret = l - r
  0 < ret ? 1 : (ret < 0 ? -1 : 0)
end
shell() click to toggle source
# File lib/saklient/cloud/enums/escript_class.rb, line 11
def self.shell
  'shell'
end