5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/javonet-ruby-sdk/utils/runtime_name_handler.rb', line 5
def self.get_name(runtime_name)
if runtime_name == RuntimeNameJavonet::CLR
return 'clr'
end
if runtime_name == RuntimeNameJavonet::GO
return 'go'
end
if runtime_name == RuntimeNameJavonet::JVM
return 'jvm'
end
if runtime_name == RuntimeNameJavonet::NETCORE
return 'netcore'
end
if runtime_name == RuntimeNameJavonet::PERL
return 'perl'
end
if runtime_name == RuntimeNameJavonet::PYTHON
return 'python'
end
if runtime_name == RuntimeNameJavonet::RUBY
return 'ruby'
end
if runtime_name == RuntimeNameJavonet::NODEJS
return 'nodejs'
end
if runtime_name == RuntimeNameJavonet::CPP
return 'cpp'
end
if runtime_name == RuntimeNameJavonet::PHP
return 'php'
end
if runtime_name == RuntimeNameJavonet::PYTHON27
return 'python27'
end
end
|