require 'alki' Alki.project_assembly!
Most of the time, a project will have a single assembly, so Alki makes having a single project wide assembly especially easy.
First, in your project’s
lib directory create a ruby file for your assembly. If your assembly is
to be called
lib/my_assembly.rb. If it’s namespaced put it in a subdirectory
as usual (i.e.
MyModule::MyAssembly would go in
Your assembly file just needs two lines:
It will detect the project root and what class name it should create automatically.
config directory must be created in the project root, and in that directory an
file should be created. It should contain an
Alki do … end block which contains the top level
definition for your Assembly.
Alki do # Assembly DSL ... end
Alki.project_assembly! defaults can be overridden by passing in the following keyword arguments:
Set the name of the assembly. Should be formatted how you would put it in a
Set directory where assembly config files are found. Default is
Sets the name of the main config file to load. Defaults to