Sha256: 7f2a8a2bbdda93818da6bea7372f11ac339f7674a2495a5a9d5cd16ad5a45b9a

Contents?: true

Size: 353 Bytes

Versions: 2

Compression:

Stored size: 353 Bytes

Contents

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

module Configuration
  module Unzip
    include Albacore::Configuration

    def self.unzipconfig
      @config ||= OpenStruct.new.extend(OpenStructToHash).extend(Unzip)
    end

    def unzip
      config ||= Unzip.unzipconfig
      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/unzipconfig.rb
albacore-1.0.0.rc.3 lib/albacore/config/unzipconfig.rb