Sha256: f6139f38186c06f0149ca1f9621640d99c7998ae8f0eda7fb79c2fe938fb6e6a

Contents?: true

Size: 1.44 KB

Versions: 2

Compression:

Stored size: 1.44 KB

Contents

require 'pe_build'

module PEBuild
  module Release

    require 'pe_build/release/instance'

    @releases = {}

    def self.[](ver)
      release = @releases[ver]

      if release.nil?
        logger = Log4r::Logger.new('vagrant::pe_build::release')
        logger.warn I18n.t 'pebuild.release.unknown_version',
          :missing_version => ver,
          :latest_version  => LATEST_VERSION
        release = @releases[LATEST_VERSION]
      end

      release
    end

    def self.newrelease(&blk)
      PEBuild::Release::Instance.new(&blk)
    end

    require 'pe_build/release/1_2'
    require 'pe_build/release/2_0'
    require 'pe_build/release/2_5'
    require 'pe_build/release/2_6'
    require 'pe_build/release/2_7'
    require 'pe_build/release/2_8'
    require 'pe_build/release/3_0'
    require 'pe_build/release/3_1'
    require 'pe_build/release/3_2'
    require 'pe_build/release/3_3'
    require 'pe_build/release/3_7'
    require 'pe_build/release/3_8'
    require 'pe_build/release/2015_2'
    require 'pe_build/release/2015_3'
    require 'pe_build/release/2016_1'
    require 'pe_build/release/2016_2'
    require 'pe_build/release/2016_4'
    require 'pe_build/release/2016_5'
    require 'pe_build/release/2017_1'
    require 'pe_build/release/2017_2'
    require 'pe_build/release/2017_3'
    require 'pe_build/release/2018_1'
    require 'pe_build/release/2019_0'
    require 'pe_build/release/2019_1'

    LATEST_VERSION = '2019.1.0'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-pe_build-0.19.1 lib/pe_build/release.rb
vagrant-pe_build-0.19.0 lib/pe_build/release.rb