lib/nanoc/cli/commands/deploy.rb in nanoc-3.5.0b1 vs lib/nanoc/cli/commands/deploy.rb in nanoc-3.5.0b2
- old
+ new
@@ -58,16 +58,19 @@
raise Nanoc::Errors::GenericTrivial, "The specified deploy target has an unrecognised kind “#{name}” (expected one of #{names.join(', ')})."
end
# Check
unless options[:'no-check']
- puts "Running issue checks…"
- ok = Nanoc::Extra::Checking::Runner.new(site).run_for_deploy
- if !ok
- puts "Issues found, deploy aborted."
- return
+ runner = Nanoc::Extra::Checking::Runner.new(site)
+ if runner.has_dsl?
+ puts "Running issue checks…"
+ ok = runner.run_for_deploy
+ if !ok
+ puts "Issues found, deploy aborted."
+ return
+ end
+ puts "No issues found. Deploying!"
end
- puts "No issues found. Deploying!"
end
# Run
deployer = deployer_class.new(
site.config[:output_dir],