Sha256: 8932ee05327156193fe614107ce45c8436dc3a779ead228096987197d76e0822
Contents?: true
Size: 835 Bytes
Versions: 17
Compression:
Stored size: 835 Bytes
Contents
CHEF_VPC_PROJECT = "#{File.dirname(__FILE__)}" unless defined?(CHEF_VPC_PROJECT) require 'rubygems' version_file=(File.join(CHEF_VPC_PROJECT, 'config', 'TOOLKIT_VERSION')) toolkit_version=nil if ENV['CHEF_VPC_TOOLKIT_VERSION'] then toolkit_version=ENV['CHEF_VPC_TOOLKIT_VERSION'] elsif File.exists?(version_file) toolkit_version=IO.read(version_file) end #puts "Chef VPC Toolkit Version: #{toolkit_version}" gem 'chef-vpc-toolkit', "= #{toolkit_version}" if toolkit_version require 'chef-vpc-toolkit' include ChefVPCToolkit Dir[File.join("#{ChefVPCToolkit::Version::CHEF_VPC_TOOLKIT_ROOT}/rake", '*.rake')].each do |rakefile| import(rakefile) end if File.exist?(File.join(CHEF_VPC_PROJECT, 'tasks')) then Dir[File.join(File.dirname("__FILE__"), 'tasks', '*.rake')].each do |rakefile| import(rakefile) end end
Version data entries
17 entries across 17 versions & 1 rubygems