Class: Dply::BuildConfig
- Inherits:
-
BaseConfig
- Object
- BaseConfig
- Dply::BuildConfig
- Defined in:
- lib/dply/build_config.rb
Instance Attribute Summary
Attributes inherited from BaseConfig
Instance Method Summary collapse
Methods inherited from BaseConfig
build, define_opt, define_opt_setter, define_opts, #initialize, new_struct_klass, #read, #set, struct_klass
Constructor Details
This class inherits a constructor from Dply::BaseConfig
Instance Method Details
#default_config ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/dply/build_config.rb', line 31 def default_config dir Dir.pwd git true task :build branch "master" shared_dirs [] dir_map({ "tmp" => "tmp", "log" => "log" }) end |
#meta_conf(&block) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/dply/build_config.rb', line 22 def (&block) conf = MetaConfig.new("config") conf.instance_eval &block config_map({ "meta.yml" => "meta_generated.yml" }) set(:meta_conf, conf) end |