Sha256: ed4124504977b2405352fdf860680c1080b3dafe8a45fcab07ed0906258c2673

Contents?: true

Size: 297 Bytes

Versions: 5

Compression:

Stored size: 297 Bytes

Contents

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

module Configuration
  module Exec
    include Albacore::Configuration

    def exec
      @execconfig ||= OpenStruct.new.extend(OpenStructToHash)
      yield(@execconfig) if block_given?
      @execconfig
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
albacore-0.2.5 lib/albacore/config/execconfig.rb
albacore-0.2.4 lib/albacore/config/execconfig.rb
albacore-0.2.3 lib/albacore/config/execconfig.rb
albacore-0.2.2 lib/albacore/config/execconfig.rb
albacore-0.2.0.preview2 lib/albacore/config/execconfig.rb