Bläddra i källkod

use profiles instead

Chris Mague 7 år sedan
förälder
incheckning
4b9308242c
1 ändrade filer med 1 tillägg och 11 borttagningar
  1. 1 11
      {{cookiecutter.packer_name}}/Rakefile

+ 1 - 11
{{cookiecutter.packer_name}}/Rakefile

@@ -57,18 +57,8 @@ task :build_ami do
   end  
 end
 
-desc 'Ensure environment is setup properly'
-task :check_env do
-  ['SOURCE_AMI', 'AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY'].each do |st|
-    unless ENV.has_key? st
-      puts "ENV var #{st} is not set - see the Readme"
-      exit 1
-    end
-  end
-end
-
 desc 'Build the ami'
-task :build_full_ami => [:check_env, :validate_packer, :update_galaxy, :lint_playbook, :build_ami] do
+task :build_full_ami => [:validate_packer, :update_galaxy, :lint_playbook, :build_ami] do
   puts 'Rake: Building the ami '
 end