[DRE-commits] [test-kitchen] 12/13: Do not run `gem install` during `kitchen init`
Hleb Valoshka
tsfgnu-guest at moszumanska.debian.org
Fri Aug 5 12:46:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
tsfgnu-guest pushed a commit to branch patch-queue/master
in repository test-kitchen.
commit 4dcc2372bbb177944fad2f56764c467e95bd810c
Author: Hleb Valoshka <375gnu at gmail.com>
Date: Thu Jul 9 18:34:28 2015 +0300
Do not run `gem install` during `kitchen init`
---
features/kitchen_init_command.feature | 2 +-
lib/kitchen/generator/init.rb | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/features/kitchen_init_command.feature b/features/kitchen_init_command.feature
index 0b29480..6d1e6d3 100644
--- a/features/kitchen_init_command.feature
+++ b/features/kitchen_init_command.feature
@@ -32,7 +32,7 @@ Feature: Add Test Kitchen support to an existing project
And a file named "Gemfile" should not exist
And a file named "Rakefile" should not exist
And a file named "Thorfile" should not exist
- And a gem named "kitchen-vagrant" is installed
+ And the output should contain "apt install ruby-kitchen-vagrant"
And a file named "chefignore" should exist
And the file "chefignore" should contain ".kitchen"
diff --git a/lib/kitchen/generator/init.rb b/lib/kitchen/generator/init.rb
index 475337a..f57b1ae 100644
--- a/lib/kitchen/generator/init.rb
+++ b/lib/kitchen/generator/init.rb
@@ -239,7 +239,13 @@ module Kitchen
if File.exist?(File.join(destination_root, "Gemfile")) || options[:create_gemfile]
add_driver_to_gemfile(driver_gem)
else
- install_gem(driver_gem)
+ say "Debian version of kitchen doesn't install driver gem itself.", :yellow
+ if driver_gem !~ /\Aruby-/ then
+ say "Use `apt install ruby-#{driver_gem}' to install it.", :yellow
+ say "Or, if it isn't packaged yet, then use `gem install #{driver_gem}'.", :yellow
+ else
+ say "Use `apt install #{driver_gem}' to install it.", :yellow
+ end
end
end
end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/test-kitchen.git
More information about the Pkg-ruby-extras-commits
mailing list