Class: AssLauncher::Enterprise::BinaryWrapper::ThickClient
- Inherits:
-
AssLauncher::Enterprise::BinaryWrapper
- Object
- AssLauncher::Enterprise::BinaryWrapper
- AssLauncher::Enterprise::BinaryWrapper::ThickClient
- Defined in:
- lib/ass_launcher/enterprise/binary_wrapper.rb
Overview
Wrapper for 1C thick client binary
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from AssLauncher::Enterprise::BinaryWrapper
Instance Method Summary collapse
-
#accepted_connstr ⇒ Array<Symbol>
Define type of connection_string suitable for 1C binary.
-
#command(run_mode, args = [], **options, &block) ⇒ AssLauncher::Support::Shell::Command
Run 1C:Enterprise client as command.
-
#script(run_mode, args = '', **options) ⇒ AssLauncher::Support::Shell::Script
Run 1C:Enterprise client as cmd or shell script.
Methods inherited from AssLauncher::Enterprise::BinaryWrapper
#<=>, #arch, #cli_spec, #exists?, #initialize, #major_v, run_modes, #run_modes, #version
Methods included from Support::Platforms
cygwin?, env, glob, linux?, path, path_class, windows?
Constructor Details
This class inherits a constructor from AssLauncher::Enterprise::BinaryWrapper
Instance Method Details
#accepted_connstr ⇒ Array<Symbol>
Define type of connection_string suitable for 1C binary
174 175 176 |
# File 'lib/ass_launcher/enterprise/binary_wrapper.rb', line 174 def accepted_connstr [:file, :server] end |
#command(run_mode, args = [], **options, &block) ⇒ AssLauncher::Support::Shell::Command
For correct pass cli parameters to 1C:Enterprise binary, you can passes block. Block will be eval in instance of Cli::ArgumentsBuilder. ArgumentsBuilder
use Cli::CliSpec and verify parameters and prameters values. Also you can pass arguments directly, without verify, uses args
array.
Command not wait while 1C:Enterprise execution. You can manipulate with many 1C clients runned at once.
Run 1C:Enterprise client as command.
258 259 260 261 262 263 264 265 |
# File 'lib/ass_launcher/enterprise/binary_wrapper.rb', line 258 def command(run_mode, args = [], **, &block) args_ = args.dup args_.unshift mode(run_mode) args_ += build_args(run_mode, &block) if block_given? verify_createinfobase_param_order! args_ if\ run_mode == :createinfobase to_command(args_, ) end |
#script(run_mode, args = '', **options) ⇒ AssLauncher::Support::Shell::Script
It waiting for script execution.
It not use arguments builder and not expects of block. Arguments string make as you want
Run 1C:Enterprise client as cmd or shell script.
311 312 313 314 |
# File 'lib/ass_launcher/enterprise/binary_wrapper.rb', line 311 def script(run_mode, args = '', **) args_ = "#{mode(run_mode)} #{args}" to_script(args_, ) end |