Module: AssLauncher::Cmd::Abstract::ParseIbPath Private

Includes:
Api
Included in:
Run, Main::SubCommands::Web::SubCommands::Uri
Defined in:
lib/ass_launcher/cmd.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Mixin

Instance Method Summary collapse

Methods included from Api

#cs, #cs_file, #cs_http, #cs_srv, #load_v8i, #ole, #thicks, #thicks_i386, #thicks_x86_64, #thins, #thins_i386, #thins_x86_64, #web_client

Instance Method Details

#connection_stringObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



810
811
812
813
814
815
816
# File 'lib/ass_launcher/cmd.rb', line 810

def connection_string
  case ib_path
  when %r{https?://}i then cs_http(ws: ib_path)
  when %r{tcp://}i then parse_tcp_path
  else cs_file(file: ib_path)
  end
end

#parse_tcp_pathObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



818
819
820
821
# File 'lib/ass_launcher/cmd.rb', line 818

def parse_tcp_path
  u = URI(ib_path)
  cs_srv(srvr: "#{u.host}:#{u.port}", ref: u.path.gsub(%r{^/}, ''))
end