Class: Cucumber::Pro::Info

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/pro/info.rb

Instance Method Summary collapse

Instance Method Details

#to_hObject



8
9
10
11
12
13
14
15
16
17
# 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