contrib/rake/Rakefile in chef-vpc-toolkit-2.0.1 vs contrib/rake/Rakefile in chef-vpc-toolkit-2.1.0
- old
+ new
@@ -3,13 +3,13 @@
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']
+ toolkit_version=ENV['CHEF_VPC_TOOLKIT_VERSION']
elsif File.exists?(version_file)
- toolkit_version=IO.read(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
@@ -20,9 +20,10 @@
Dir[File.join("#{ChefVPCToolkit::Version::CHEF_VPC_TOOLKIT_ROOT}/rake", '*.rake')].each do |rakefile|
import(rakefile)
end
-Dir[File.join(File.dirname("__FILE__"), 'tasks', '*.rake')].each do |rakefile|
-puts rakefile
+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