Module: TestBoosters::ProjectInfo

Defined in:
lib/test_boosters/project_info.rb

Class Method Summary collapse

Class Method Details

.display_bundler_versionObject



11
12
13
14
15
# File 'lib/test_boosters/project_info.rb', line 11

def display_bundler_version
  version = TestBoosters::Shell.evaluate("bundle --version").gsub("Bundler version ", "")

  puts "Bundler Version: #{version}"
end

.display_cucumber_versionObject



24
25
26
27
28
29
# File 'lib/test_boosters/project_info.rb', line 24

def display_cucumber_version
  command = "(bundle list | grep -q '* cucumber') && (bundle exec cucumber --version | head -1) || echo 'not found'"
  version = TestBoosters::Shell.evaluate(command)

  puts "Cucumber Version: #{version}"
end

.display_rspec_versionObject



17
18
19
20
21
22
# File 'lib/test_boosters/project_info.rb', line 17

def display_rspec_version
  command = "(bundle list | grep -q '* rspec') && (bundle exec rspec --version | head -1) || echo 'not found'"
  version = TestBoosters::Shell.evaluate(command)

  puts "RSpec Version: #{version}"
end

.display_ruby_versionObject



5
6
7
8
9
# File 'lib/test_boosters/project_info.rb', line 5

def display_ruby_version
  version = TestBoosters::Shell.evaluate("ruby --version").gsub("ruby ", "")

  puts "Ruby Version: #{version}"
end