Sha256: 7804bd23bb91e357f47921f26078dcab2d4cadba65b6513d2982ea43a4f40af2
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
# # Author:: Seth Chisamore (<schisamo@opscode.com>) # Copyright:: Copyright (c) 2012 Opscode, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # project = node.run_state['project'] [File.join(project['test_root'], 'Gemfile'), File.join(project['test_root'], 'test', 'Gemfile')].each do |gemfile_path| # TODO - remove this when test-kitchen is public ruby_block "remove test-kitchen entry in Gemfile - #{gemfile_path}" do block do require 'chef/util/file_edit' fe = Chef::Util::FileEdit.new(gemfile_path) fe.search_file_delete_line(/gem ['"]test-kitchen['"]/) fe.write_file end only_if { File.exists?(gemfile_path) } end # ensure we blow away Gemfile.lock file "#{gemfile_path}.lock" do action :delete end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
test-kitchen-0.5.0 | cookbooks/test-kitchen/recipes/ruby.rb |