Sha256: cffa0f802c7637f550452f2b6b33989365aed5223d4e7f599f41831dff081541

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 Bytes

Contents

gem_version = run_context.cookbook_collection[cookbook_name].metadata.version

if Chef::Resource::ChefGem.instance_methods(false).include?(:compile_time)
  chef_gem 'chef-consul' do
    version gem_version
    compile_time true
    source '/vagrant/test/shared/data/chef-consul.gem'
  end
else
  chef_gem 'chef-consul' do
    version gem_version
    action :nothing
    source '/vagrant/test/shared/data/chef-consul.gem'
  end.run_action(:install)
end

require 'chef/consul'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chef-consul-1.0.0 test/fixtures/cookbooks/chef_consul_gem/recipes/default.rb