Module: Shoes::Package

Defined in:
shoes-package/lib/shoes/package.rb,
shoes-package/lib/shoes/package/version.rb,
shoes-package/lib/shoes/package/configuration.rb

Defined Under Namespace

Modules: Configuration Classes: Validator, WarblerExtensions

Constant Summary collapse

VERSION =
"4.0.0.rc1"

Class Method Summary collapse

Class Method Details

.create_packager(config, package_type) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'shoes-package/lib/shoes/package.rb', line 5

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