Sha256: f708ed37e5f03c6209e2b017bff0d361fcb376ace1496e6a2bc441fbed477639
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 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}" packages.each do |pkg| menu.choice(pkg.to_s) { pkg; } end end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprinkle-0.7.7 | lib/sprinkle/package/chooser.rb |