Sha256: c887e2f31242005fff17d6d4f61644a3626f7d98b1f2b1c8e2cd3e429d307181

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

require 'ostruct'
require 'albacore/support/openstruct'

module Configuration
  module Exec
    @execconfig = OpenStruct.new.extend(OpenStructToHash)

    def self.execconfig
      @execconfig
    end

    def exec
      config = Exec.execconfig
      yield(config) if block_given?
      config
    end
  end
end

class Albacore::Configuration
  include Configuration::Exec
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
albacore-0.2.0.preview1 lib/albacore/config/execconfig.rb