Sha256: d11fa4cd59bc8168c5ffb50b81875743384252ece17551e89424825b0081c800

Contents?: true

Size: 889 Bytes

Versions: 1

Compression:

Stored size: 889 Bytes

Contents

require 'legion/transport/exchanges/extensions'

module Legion
  module Transport
    module Messages
      class LexRegister < Legion::Transport::Message
        def exchange
          Legion::Transport::Exchanges::Extensions
        end

        def routing_key
          'extension_manager.register.save'
        end

        def validate
          unless @options[:runner_namespace].is_a? String
            # raise "runner_namespace is a #{@options[:runner_namespace].class}"
          end
          unless @options[:extension_namespace].is_a? String
            # raise "extension_namespace is a #{@options[:extension_namespace].class}"
          end
          unless @options[:function].is_a?(String) || @options[:function].is_a?(Symbol)
            # raise "function is a #{@options[:function].class}"
          end

          @valid = true
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
legion-transport-1.2.0 lib/legion/transport/messages/lex_register.rb