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
|
# File 'lib/javonet-ruby-sdk/utils/runtime_name_handler.rb', line 5
def self.get_name(runtime_name)
if runtime_name == RuntimeName::CLR
return 'clr'
end
if runtime_name == RuntimeName::GO
return 'go'
end
if runtime_name == RuntimeName::JVM
return 'jvm'
end
if runtime_name == RuntimeName::NETCORE
return 'netcore'
end
if runtime_name == RuntimeName::PERL
return 'perl'
end
if runtime_name == RuntimeName::PYTHON
return 'python'
end
if runtime_name == RuntimeName::RUBY
return 'ruby'
end
if runtime_name == RuntimeName::NODEJS
return 'nodejs'
end
if runtime_name == RuntimeName::CPP
return 'cpp'
end
end
|