Sha256: addbef3401ce15a6492c0f4cfd311d80ffb0e5057828a146c66051e73f28e066

Contents?: true

Size: 898 Bytes

Versions: 28

Compression:

Stored size: 898 Bytes

Contents

from javonet.utils.RuntimeName import RuntimeName


class RuntimeNameHandler:

    @staticmethod
    def get_name(runtime_name):
        if isinstance(runtime_name, RuntimeName):
            if runtime_name == RuntimeName.clr:
                return "clr"
            elif runtime_name == RuntimeName.go:
                return "go"
            elif runtime_name == RuntimeName.jvm:
                return "jvm"
            elif runtime_name == RuntimeName.netcore:
                return "netcore"
            elif runtime_name == RuntimeName.perl:
                return "perl"
            elif runtime_name == RuntimeName.python:
                return "python"
            elif runtime_name == RuntimeName.ruby:
                return "ruby"
            elif runtime_name == RuntimeName.nodejs:
                return "nodejs"
        else:
            raise Exception("Invalid runtime name.")

Version data entries

28 entries across 19 versions & 1 rubygems

Version Path
javonet-ruby-sdk-2.5.8 lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.5.7 lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.5.6 lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.5.5 lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.5.4 lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.5.3 lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.5.2 lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.5.1 lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.5.0 lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.4.11 lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.4.10 lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.4.10 lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.4.9 lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.4.9 lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.4.8 lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.4.8 lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.4.7 lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.4.7 lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.4.6 lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/utils/RuntimeNameHandler.py
javonet-ruby-sdk-2.4.6 lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/utils/RuntimeNameHandler.py