Class: Dist::Builder
- Inherits:
-
Object
- Object
- Dist::Builder
- Includes:
- Error, FileUtils::Verbose
- Defined in:
- lib/dist/builder.rb
Constant Summary collapse
- OutputDir =
"tmp/dist"
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#packages ⇒ Object
readonly
Returns the value of attribute packages.
Instance Method Summary collapse
- #build ⇒ Object
- #init ⇒ Object
-
#initialize(options = {}) ⇒ Builder
constructor
A new instance of Builder.
Methods included from Error
Constructor Details
#initialize(options = {}) ⇒ Builder
Returns a new instance of Builder.
16 17 18 19 |
# File 'lib/dist/builder.rb', line 16 def initialize( = {}) @templates = {} @options = end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
13 14 15 |
# File 'lib/dist/builder.rb', line 13 def config @config end |
#packages ⇒ Object (readonly)
Returns the value of attribute packages.
14 15 16 |
# File 'lib/dist/builder.rb', line 14 def packages @packages end |
Instance Method Details
#build ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/dist/builder.rb', line 21 def build check_executable load_configuration compute_packages compile_assets if !@options[:skip_assets] && assets_enabled execute_before_build_commands build_output move_config_files generate_logrotate export_services export_control build_package end |
#init ⇒ Object
35 36 37 38 39 |
# File 'lib/dist/builder.rb', line 35 def init @app_name = File.basename(FileUtils.pwd) write_template 'config', 'config/dist.rb' end |