Sha256: bfb666efacf6e12c1d10f1b5a8bc71b96de946929d6259634717413bc2119066

Contents?: true

Size: 504 Bytes

Versions: 3

Compression:

Stored size: 504 Bytes

Contents

# frozen_string_literal: true
class Shoes
  module Package
    def self.create_packager(config, package_type)
      require 'furoshiki'

      case package_type
      when :jar
        ::Furoshiki::Jar.new(config)
      when :mac
        ::Furoshiki::MacApp.new(config)
      when :linux
        ::Furoshiki::LinuxApp.new(config)
      when :windows
        ::Furoshiki::WindowsApp.new(config)
      else
        abort "shoes: Don't know how to make #{package_type} packages"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shoes-package-4.0.0.pre12 lib/shoes/package.rb
shoes-package-4.0.0.pre11 lib/shoes/package.rb
shoes-package-4.0.0.pre10 lib/shoes/package.rb