lib/airake/tasks/air.rake in airake-0.4.1 vs lib/airake/tasks/air.rake in airake-0.4.2

- old
+ new

@@ -69,11 +69,11 @@ optionals[:country] = STDIN.gets.chomp! print "Password: " password = STDIN.gets.chomp! - Airake::Runner.run(project.adt, :generate_certificate, cn, pfx_file, key_type, password, optionals) + Airake::Runner.run(project.adt, :certificate, cn, pfx_file, key_type, password, optionals) end # Check certificate configuration for package task task :check_certificate do pfx_file = ENV["CERTIFICATE"] @@ -92,10 +92,21 @@ raise "Certificate does not exist yet. Run rake air:certificate to generate one at #{pfx_file}" unless File.exist?(pfx_file) end desc "Package" - task :package => [ :check_certificate, :compile, :package_only ] do; end + task :package => [ :check_certificate, :compile, :package_only ] do + + if ENV["AIRAKE_ENV"] != "production" + puts <<-EOS + + You packaged under the environment: #{ENV["AIRAKE_ENV"]}. + + You might want to package by: AIRAKE_ENV=production rake air:package + + EOS + end + end desc "Package only" task :package_only do project = Airake::Project.new Airake::Runner.run(project.adt, :package) \ No newline at end of file