Sha256: 4a44e6e128eb2517dd99e991db34610b285c988118925ce6d9bf5e57b9e7ca6e

Contents?: true

Size: 516 Bytes

Versions: 8

Compression:

Stored size: 516 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require "poolparty"
require "poolparty/installer"

msg = "\nWhat remoter base would you like to use?"

providers = {}
PoolParty::Installer.all.each_with_index do |installer,idx|
  providers.merge!(idx+1 => installer)
end

o = {}
PoolParty::Installer.choose(msg, providers, o) do |output|
  PoolParty::Installer.colored_say "Great, we'll be using #{output.to_s.top_level_class}"
  
  klass = output
  inst = klass.send :new
  inst.run
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
auser-poolparty-1.3.0 bin/install-poolparty
auser-poolparty-1.3.1 bin/install-poolparty
auser-poolparty-1.3.2 bin/install-poolparty
auser-poolparty-1.3.3 bin/install-poolparty
auser-poolparty-1.3.4 bin/install-poolparty
poolparty-1.3.4 bin/install-poolparty
poolparty-1.3.3 bin/install-poolparty
poolparty-1.3.1 bin/install-poolparty