Ruby wrapper for 1C:Enterprise platform.
Goal of this to make easily and friendly writing scripts for development and support lifecycle of 1C:Enterprise applications
AssLauncher is cross platform but it full tested in
Cygwin only!. In
Linux it works too.
Linux don't support
OLE feature. Don't known why I told it ;)
AssLauncher as a library
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install ass_launcher
For example, writing script which dumping 1C:Enterprise application
require 'ass_launcher' include :: def main(dupm_path) # Get wrapper for the thck client thick_client = thicks('~> 188.8.131.52').last # Fail if 1C:Enterprise installation not found fail '1C:Enterprise not found' if thick_client.nil? # Build designer command designer = thick_client.command :designer do _S 'enterprse_server/application_name' dumpIB dupm_path end # Execute command designer.run.wait # Verify result designer.process_holder.result.verify! end main ARGV
Command line utility
AssLauncher provides console tool
ass-launcher wich has
- make new 1C:Enterprise application instance (aka information base)
- run 1C:Enterprise
- show help about 1C:Enterprise CLI parameters
- and some more
For more info about
For more usage examples see examples
For beginning look at examples/enterprise_running_example.rb
All examples executable. For run them require
1C:Enterprise platform version defined in
Run all examples:
Or run specified example:
$rake run_examples TEST=examples/enterprise_running_example.rb
Directory examples/troubles contains examples which describe troubles with executing 1C:Enterprise binary.
All examples/troubles are executable too.
Run all troubles:
Be careful to run examples/troubles! Learn sources before run it.
If you have any questions open issue with
After checking out the repo, run
bin/setup to install dependencies. Then, run
rake test to run the tests. You can also run
bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run
bundle exec rake install. To release a new version, update the version number in
version.rb, and then run
bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the
.gem file to rubygems.org.
AssLauncher include bin/dev-helper utility for contributors.
Run unit tests:
$export SIMPLECOV=YES && rake test
Unit tests is isolated and doesn't require installation of 1C:Enterprise
Examples writed as
Minitest::Spec. About run examples see above
Bug reports and pull requests are welcome on GitHub at https://github.com/leoniv/ass_launcher.