Sha256: c6a36961583384c4b8b509d39fe5ff2348485eb674bc760b3c990b2042d25965

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

require "ostruct"
require "albacore/support/openstruct"

module Configuration
  module Exec
    include Albacore::Configuration

    def self.execconfig
      @config ||= OpenStruct.new.extend(OpenStructToHash).extend(Exec)
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
albacore-1.0.0 lib/albacore/config/execconfig.rb
albacore-1.0.0.rc.3 lib/albacore/config/execconfig.rb