class CliController
Public Class Methods
find_executable(executable)
click to toggle source
# File lib/cli_controller.rb, line 20 def self.find_executable(executable) `which #{executable}` $?.success? end
print_versions(distro)
click to toggle source
# File lib/cli_controller.rb, line 2 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