Sha256: 910ab7e5926360cfd4af22de28be6dcece9e8fa33f528e4f549e4af1062a7525

Contents?: true

Size: 881 Bytes

Versions: 4

Compression:

Stored size: 881 Bytes

Contents

require 'dply/base_config'
require_relative 'meta_config'

module Dply
  class DeployConfig < BaseConfig
    define_opts do
      opt :name
      opt :repo
      opt :mirror
      opt :branch
      opt :strategy, type: Symbol
      opt :target
      opt :build_url
      opt :shared_dirs, type: Array
      opt :config_map, type: Hash
      opt :dir_map, type: Hash
      opt :verify_checksum
      opt :revision
      opt :dir
      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
      branch "master"
      shared_dirs []
      dir_map({
        "tmp" => "tmp",
        "log" => "log"
      })
      verify_checksum true
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dply-0.3.5 lib/dply/deploy_config.rb
dply-0.3.4 lib/dply/deploy_config.rb
dply-0.3.3 lib/dply/deploy_config.rb
dply-0.3.2 lib/dply/deploy_config.rb