Class: AssLauncher::Cmd::Main::SubCommands::Web::SubCommands::Uri Private

Inherits:
Abstract::SubCommand
  • Object
show all
Includes:
Api, Abstract::ClientMode, Abstract::Option::Password, Abstract::Option::Raw, Abstract::Option::User, Abstract::Parameter::IB_PATH, Abstract::ParseIbPath
Defined in:
lib/ass_launcher/cmd/web.rb

Overview

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

:nodoc:

Class Method Summary collapse

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

Methods included from Abstract::ClientMode

#client, #mode, #parrent_command

Methods included from Abstract::ParseIbPath

#connection_string, #parse_tcp_path

Methods included from Abstract::Parameter::IB_PATH

included

Methods included from Abstract::Option::Raw

included, #parse_raw, #raw_param

Methods included from Abstract::Option::Password

included

Methods included from Abstract::Option::User

included

Methods included from Abstract::SubCommand::Declaration

#declare_subcommands, #subcommand_

Class Method Details

._bannerObject

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.



23
24
25
# File 'lib/ass_launcher/cmd/web.rb', line 23

def self._banner
  'Uri constructor for webclient'
end

.command_nameObject

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.



19
20
21
# File 'lib/ass_launcher/cmd/web.rb', line 19

def self.command_name
  'uri'
end

Instance Method Details

#executeObject

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.



43
44
45
# File 'lib/ass_launcher/cmd/web.rb', line 43

def execute
  puts Colorize.yellow location.to_s
end

#locationObject

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.



34
35
36
37
38
39
40
41
# File 'lib/ass_launcher/cmd/web.rb', line 34

def location
  user_ = user
  pass_ = password
  webclient.location do
    _N user_ if user_
    _P pass_ if pass_
  end.to_s
end

#webclientObject

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.



27
28
29
30
31
32
# File 'lib/ass_launcher/cmd/web.rb', line 27

def webclient
  cl = web_client(ib_path)
  cl.send(:add_to_query, cl.uri,
          cl.send(:args_to_query, raw_param.flatten))
  cl
end