Sha256: 009a0bb8ed91373a17bb37d2e7e64ea7f8397a1ab815b72649797f7f416ded74
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
module Capigen::Profiles ProfileDir = File.dirname(__FILE__) + "/../../recipes/profiles" def recipe_profiles(prefix = "") Dir[ProfileDir + "/#{prefix}*.rb"].collect { |file| File.basename(file)[0...-3] } end def choose_profile(prefix = "") profile = HighLine.new.choose(*recipe_profiles(prefix)) do |menu| menu.header = "Choose recipe profile" end "#{ProfileDir}/#{profile}.rb" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capigen-0.1.1 | lib/capigen/profiles.rb |