Sha256: e93571c9d77d576defa921bebbaf882f89ec3ce109b84c92676476ec745827a9

Contents?: true

Size: 392 Bytes

Versions: 1

Compression:

Stored size: 392 Bytes

Contents

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

module Configuration
  module Zip
    @zipconfig = OpenStruct.new.extend(OpenStructToHash)

    def self.zipconfig
      @zipconfig
    end

    def zip
      config = Zip.zipconfig
      yield(config) if block_given?
      config
    end
  end
end

class Albacore::Configuration
  include Configuration::Zip
end

Version data entries

1 entries across 1 versions & 1 rubygems

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