Module: AssLauncher::Api
- Included in:
- Cmd::Abstract::BinaryWrapper, Cmd::Abstract::ParseIbPath, Cmd::Main::SubCommands::Env, Cmd::Main::SubCommands::Web::SubCommands::Uri
- Defined in:
- lib/ass_launcher/api.rb
Overview
Helpers for easy to use ass_launcher
Instance Method Summary collapse
-
#cs(connstr) ⇒ Server | File | Http
Analyzes connect string and build suitable class.
- #cs_file(hash) ⇒ AssLauncher::Support::ConnectionString::File
- #cs_http(hash) ⇒ AssLauncher::Support::ConnectionString::Http
- #cs_srv(hash) ⇒ AssLauncher::Support::ConnectionString::Server
-
#load_v8i(filename) ⇒ Object
Read v8i file.
-
#ole(type, requiremet = '>= 0') ⇒ Object
Return 1C ole client suitable class instance.
-
#thicks(requiremet = '>= 0') ⇒ Array<AssLauncher::Enterprise::BinaryWrapper::ThickClient>
Return sorted array of instaled 1C binary wrappers.
-
#thicks_i386(requiremet = '>=0') ⇒ Array<AssLauncher::Enterprise::BinaryWrapper::ThickClient>
Return sorted array of instaled i386 1C binary wrappers.
-
#thicks_x86_64(requiremet = '>=0') ⇒ Array<AssLauncher::Enterprise::BinaryWrapper::ThickClient>
Return sorted array of instaled x86_64 1C binary wrappers.
-
#thins(requiremet = '>= 0') ⇒ Array<AssLauncher::Enterprise::BinaryWrapper::ThinClient>
Return sorted array of instaled 1C binary wrappers.
-
#thins_i386(requiremet = '>=0') ⇒ Array<AssLauncher::Enterprise::BinaryWrapper::ThinClient>
Return sorted array of instaled i386 1C binary wrappers.
-
#thins_x86_64(requiremet = '>=0') ⇒ Array<AssLauncher::Enterprise::BinaryWrapper::ThinClient>
Return sorted array of instaled x86_64 1C binary wrappers.
- #web_client(uri = nil, version = nil) ⇒ AssLauncher::Enterprise::WebClient
Instance Method Details
#cs(connstr) ⇒ Server | File | Http
Analyzes connect string and build suitable class
71 72 73 |
# File 'lib/ass_launcher/api.rb', line 71 def cs(connstr) AssLauncher::Support::ConnectionString.new(connstr) end |
#cs_file(hash) ⇒ AssLauncher::Support::ConnectionString::File
79 80 81 |
# File 'lib/ass_launcher/api.rb', line 79 def cs_file(hash) AssLauncher::Support::ConnectionString::File.new hash end |
#cs_http(hash) ⇒ AssLauncher::Support::ConnectionString::Http
87 88 89 |
# File 'lib/ass_launcher/api.rb', line 87 def cs_http(hash) AssLauncher::Support::ConnectionString::Http.new hash end |
#cs_srv(hash) ⇒ AssLauncher::Support::ConnectionString::Server
95 96 97 |
# File 'lib/ass_launcher/api.rb', line 95 def cs_srv(hash) AssLauncher::Support::ConnectionString::Server.new hash end |
#load_v8i(filename) ⇒ Object
Read v8i file
109 110 111 |
# File 'lib/ass_launcher/api.rb', line 109 def load_v8i(filename) AssLauncher::Support::V8iFile.load(filename) end |
#ole(type, requiremet = '>= 0') ⇒ Object
Return 1C ole client suitable class instance
118 119 120 |
# File 'lib/ass_launcher/api.rb', line 118 def ole(type, requiremet = '>= 0') AssLauncher::Enterprise::Ole.ole_client(type).new(requiremet) end |
#thicks(requiremet = '>= 0') ⇒ Array<AssLauncher::Enterprise::BinaryWrapper::ThickClient>
Return sorted array of instaled 1C binary wrappers
13 14 15 |
# File 'lib/ass_launcher/api.rb', line 13 def thicks(requiremet = '>= 0') AssLauncher::Enterprise.thick_clients(requiremet).sort end |
#thicks_i386(requiremet = '>=0') ⇒ Array<AssLauncher::Enterprise::BinaryWrapper::ThickClient>
Return sorted array of instaled i386 1C binary wrappers
29 30 31 32 33 |
# File 'lib/ass_launcher/api.rb', line 29 def thicks_i386(requiremet = '>=0') thicks(requiremet).select do |bw| !bw.x86_64? end end |
#thicks_x86_64(requiremet = '>=0') ⇒ Array<AssLauncher::Enterprise::BinaryWrapper::ThickClient>
Return sorted array of instaled x86_64 1C binary wrappers
20 21 22 23 24 |
# File 'lib/ass_launcher/api.rb', line 20 def thicks_x86_64(requiremet = '>=0') thicks(requiremet).select do |bw| bw.x86_64? end end |
#thins(requiremet = '>= 0') ⇒ Array<AssLauncher::Enterprise::BinaryWrapper::ThinClient>
Return sorted array of instaled 1C binary wrappers
43 44 45 |
# File 'lib/ass_launcher/api.rb', line 43 def thins(requiremet = '>= 0') AssLauncher::Enterprise.thin_clients(requiremet).sort end |
#thins_i386(requiremet = '>=0') ⇒ Array<AssLauncher::Enterprise::BinaryWrapper::ThinClient>
Return sorted array of instaled i386 1C binary wrappers
59 60 61 62 63 |
# File 'lib/ass_launcher/api.rb', line 59 def thins_i386(requiremet = '>=0') thins(requiremet).select do |bw| !bw.x86_64? end end |
#thins_x86_64(requiremet = '>=0') ⇒ Array<AssLauncher::Enterprise::BinaryWrapper::ThinClient>
Return sorted array of instaled x86_64 1C binary wrappers
50 51 52 53 54 |
# File 'lib/ass_launcher/api.rb', line 50 def thins_x86_64(requiremet = '>=0') thins(requiremet).select do |bw| bw.x86_64? end end |
#web_client(uri = nil, version = nil) ⇒ AssLauncher::Enterprise::WebClient
145 146 147 |
# File 'lib/ass_launcher/api.rb', line 145 def web_client(uri = nil, version = nil) AssLauncher::Enterprise.web_client(uri, version) end |