Sha256: db73e65e4e843d68aec5d16f4db7e64e38e0128e9616ac0822e6850c6f4560f8
Contents?: true
Size: 468 Bytes
Versions: 4
Compression:
Stored size: 468 Bytes
Contents
class CliController def self.print_versions(distro) puts "Inqlude: #{Inqlude::VERSION}" if find_executable("qmake") qmake_out = `qmake -v` qmake_out =~ /Qt version (.*) in/ puts "Qt: #{$1}" else puts "Qt: not found" end if distro puts "OS: #{distro.name} #{distro.version}" else puts "OS: unknown" end end def self.find_executable(executable) `which #{executable}` $?.success? end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
inqlude-0.12.0 | lib/cli_controller.rb |
inqlude-0.11.0 | lib/cli_controller.rb |
inqlude-0.10.0 | lib/cli_controller.rb |
inqlude-0.9.0 | lib/cli_controller.rb |