Sha256: 2096d06558b63f149f33959dedceabd4be49d15a502e12f14ff9613433af5d9a
Contents?: true
Size: 835 Bytes
Versions: 92
Compression:
Stored size: 835 Bytes
Contents
module Bake class ToolchainInfo def self.printHash(x, level) x.each do |k,v| if Hash === v if level > 0 level.times {print " "} else print "\n" end puts k printHash(v,level+1) elsif Array === v or String === v level.times {print " "} print "\n" if (level == 0) puts "#{k} = #{v}" end end end def self.showToolchain(x) tcs = Bake::Toolchain::Provider[x] if tcs.nil? puts "Toolchain not available" else printHash(tcs, 0) end ExitHelper.exit(0) end def self.showToolchainList() puts "Available toolchains:" Bake::Toolchain::Provider.list.keys.each { |c| puts "* #{c}" } ExitHelper.exit(0) end end end
Version data entries
92 entries across 92 versions & 1 rubygems