Sha256: 8c871ce0fc45d1050e547f44e4a1344d0fec23d7c9003d04170ead113b40e370
Contents?: true
Size: 820 Bytes
Versions: 4
Compression:
Stored size: 820 Bytes
Contents
require 'dply/base_config' require_relative 'meta_config' module Dply class BuildConfig < BaseConfig define_opts do opt :dir opt :task opt :branch opt :repo opt :mirror opt :git opt :no_pull opt :revision opt :config_map, type: Hash opt :dir_map, type: Hash opt :shared_dirs, type: Array opt :meta_conf, type: MetaConfig end def meta_conf(&block) conf = MetaConfig.new("config") conf.instance_eval &block config_map({ "meta.yml" => "meta_generated.yml" }) set(:meta_conf, conf) end def default_config dir Dir.pwd git true task :build branch "master" shared_dirs [] dir_map({ "tmp" => "tmp", "log" => "log" }) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dply-0.3.5 | lib/dply/build_config.rb |
dply-0.3.4 | lib/dply/build_config.rb |
dply-0.3.3 | lib/dply/build_config.rb |
dply-0.3.2 | lib/dply/build_config.rb |