Sha256: 60933c98971014556f2407785c9399e2c9418c62bb8721c49d8f02fb2f7a0571

Contents?: true

Size: 340 Bytes

Versions: 2

Compression:

Stored size: 340 Bytes

Contents

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

module Configuration
  module Zip
    include Albacore::Configuration

    def self.zipconfig
      @config ||= OpenStruct.new.extend(OpenStructToHash).extend(Zip)
    end

    def zip
      config ||= Zip.zipconfig
      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/zipdirectoryconfig.rb
albacore-1.0.0.rc.3 lib/albacore/config/zipdirectoryconfig.rb