Sha256: 2e62b4220fc3ca0c391b700bd2a378cf4497cef394522f05d8d7485f393f9dd2
Contents?: true
Size: 637 Bytes
Versions: 4
Compression:
Stored size: 637 Bytes
Contents
module Sprinkle::Package class Chooser #:nodoc: def self.select_package(name, packages) if packages.size <= 1 package = packages.first else package = choose do |menu| menu.prompt = "Multiple choices exist for virtual package #{name}" menu.choices( *packages.collect(&:to_s) ) end package = Sprinkle::Package::PACKAGES.first(package) end cloud_info "Selecting #{package.to_s} for virtual package #{name}" package end def self.cloud_info(message) logger.info(message) if Sprinkle::OPTIONS[:cloud] or logger.debug? end end end
Version data entries
4 entries across 4 versions & 1 rubygems