Sha256: ac076bc59c305e887c2cb8e48acacdf23b2ff7b2f22f6ab38c98f059f9189549

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

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

module Configuration
  module XUnit
    include Albacore::Configuration

    def self.xunitconfig
      @config ||= OpenStruct.new.extend(OpenStructToHash).extend(XUnit)
    end

    def xunit
      config ||= XUnit.xunitconfig
      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/xunitconfig.rb
albacore-1.0.0.rc.3 lib/albacore/config/xunitconfig.rb