Sha256: c22d95787bc18dad3e5690da9d7476a60b6e309716496cf2d916dcee830c67f5

Contents?: true

Size: 757 Bytes

Versions: 8

Compression:

Stored size: 757 Bytes

Contents

module Ridley
  module Errors
    module ConnectorsError; end

    class HostConnectionError < RidleyError
      include ConnectorsError
    end

    class DNSResolvError < HostConnectionError
      include ConnectorsError
    end

    class BootstrapError < RidleyError; end
    class RemoteCommandError < RidleyError; end
    class RemoteScriptError < RemoteCommandError; end
    class CommandNotProvided < RemoteCommandError
      attr_reader :connector_type

      # @params [Symbol] connector_type
      def initialize(connector_type)
        @connector_type = connector_type
      end

      def to_s
        "No command provided in #{connector_type.inspect}, however the #{connector_type.inspect} connector was selected."
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ridley-connectors-2.4.0 lib/ridley-connectors/errors.rb
ridley-connectors-2.3.1 lib/ridley-connectors/errors.rb
ridley-connectors-2.3.0 lib/ridley-connectors/errors.rb
ridley-connectors-2.2.0 lib/ridley-connectors/errors.rb
ridley-connectors-2.1.2 lib/ridley-connectors/errors.rb
ridley-connectors-2.1.1 lib/ridley-connectors/errors.rb
ridley-connectors-2.1.0 lib/ridley-connectors/errors.rb
ridley-connectors-2.0.1 lib/ridley-connectors/errors.rb