Sha256: c5224c9251489de3546b04ef5e2fc445104b6ab97f3bb043784b17153c96b64b

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

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

module Configuration
  module MSpec
    include Albacore::Configuration

    def self.mspecconfig
      @config ||= OpenStruct.new.extend(OpenStructToHash).extend(MSpec)
    end

    def mspec
      config ||= MSpec.mspecconfig
      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/mspecconfig.rb
albacore-1.0.0.rc.3 lib/albacore/config/mspecconfig.rb