Sha256: 5a96c9b76e93d743e6faf86d3e7fedacdcf91656e1daba86f9c31bf8181b1db0

Contents?: true

Size: 400 Bytes

Versions: 1

Compression:

Stored size: 400 Bytes

Contents

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

module Configuration
  module NAnt
    @nantconfig = OpenStruct.new.extend(OpenStructToHash)

    def self.nantconfig
      @nantconfig
    end

    def nant
      config = NAnt.nantconfig
      yield(config) if block_given?
      config
    end
  end
end

class Albacore::Configuration
  include Configuration::NAnt
end

Version data entries

1 entries across 1 versions & 1 rubygems

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