Module: TestBoosters::ProjectInfo
- Defined in:
- lib/test_boosters/project_info.rb
Class Method Summary collapse
- .display_bundler_version ⇒ Object
- .display_cucumber_version ⇒ Object
- .display_rspec_version ⇒ Object
- .display_ruby_version ⇒ Object
Class Method Details
.display_bundler_version ⇒ Object
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_version ⇒ Object
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_version ⇒ Object
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_version ⇒ Object
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 |