Method: OpencodeTheme::Cli#systeminfo

Defined in:
lib/opencode_theme/cli.rb

#systeminfoObject



200
201
202
203
204
205
206
207
208
209
210
# File 'lib/opencode_theme/cli.rb', line 200

def systeminfo
  ruby_version = RUBY_VERSION.to_s
  ruby_version += "-p#{RUBY_PATCHLEVEL}" if RUBY_PATCHLEVEL
  say( 'Ruby: v' + ruby_version.to_s)
  say('OpencodeTheme: v' + OpencodeTheme::VERSION.to_s)
  say('Operating System: ' + RUBY_PLATFORM)
  %w(HTTParty Launchy).each do |lib|
    require "#{lib.downcase}/version"
    say("#{lib}: v" + Kernel.const_get("#{lib}::VERSION"))
  end
end