Sha256: b46df35286a32e3394f1785f2ef1f667457c0d770cc5231b91af70425d761ad1

Contents?: true

Size: 1.58 KB

Versions: 7

Compression:

Stored size: 1.58 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.
#

# Make sure that the package list is up to date
case node['platform']
when 'debian', 'ubuntu'
  include_recipe 'apt'
  # Force an update at compile-time to avoid failure when a cookbook attempts
  # a package install at compile-time.
  resources(:execute => "apt-get update").run_action(:run)
when 'centos','redhat'
  include_recipe 'yum::epel'
end

include_recipe 'git'
include_recipe 'test-kitchen::compat'

project = node['test-kitchen']['project']
source_root = project['source_root']
test_root = project['test_root']

package "rsync" do
  action :install
end

execute "stage project source to test root" do
  command "rsync -aHv --update --progress --checksum #{source_root}/ #{test_root} "
end

# make the project_root available to other recipes
node.run_state['project'] = project

language = project['language'] || 'chef'

# ensure projects declared language toolchain is present
include_recipe "test-kitchen::#{language}"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
test-kitchen-0.7.0 cookbooks/test-kitchen/recipes/default.rb
test-kitchen-0.7.0.rc.1 cookbooks/test-kitchen/recipes/default.rb
test-kitchen-0.7.0.beta.1 cookbooks/test-kitchen/recipes/default.rb
test-kitchen-0.6.0 cookbooks/test-kitchen/recipes/default.rb
test-kitchen-0.5.4 cookbooks/test-kitchen/recipes/default.rb
test-kitchen-0.5.2 cookbooks/test-kitchen/recipes/default.rb
test-kitchen-0.5.0 cookbooks/test-kitchen/recipes/default.rb