class Cucumber::Pro::Info
Public Instance Methods
to_h()
click to toggle source
# File lib/cucumber/pro/info.rb, line 8 def to_h { os: "#{RbConfig::CONFIG['host_os']} (#{RbConfig::CONFIG['host_cpu']})", platform_version: "#{RbConfig::CONFIG['ruby_install_name']} #{RbConfig::CONFIG['ruby_version']}", tool_version: "cucumber-ruby #{Cucumber::VERSION}", os_user: Etc.getlogin, client_version: "cucumber-pro-ruby #{File.read(File.dirname(__FILE__) + '/version').strip}", cmd: ([$PROGRAM_NAME] + ARGV).join(' ') } end