bin/pushyd in pushyd-0.3.1 vs bin/pushyd in pushyd-0.3.2
- old
+ new
@@ -33,23 +33,29 @@
end.order!(ARGV)
# Build Chamber-based configuration from Gemspec with initial context
Conf.prepare root: APP_ROOT, gemspec: "pushyd", env: cmd_env, config: cmd_config, log: cmd_logfile
- # Display final configuration
- puts "--- #{Conf.name} #{Conf.version}"
- puts "Environment \t #{Conf.env}"
- puts "Config files \t #{Conf.files}"
- puts "Loging to file \t #{Conf[:log]}"
- puts Conf.dump if cmd_dump
-
rescue OptionParser::InvalidOption => e
abort "EXITING: option parser: #{e.message}"
rescue PushyDaemon::ConfigParseError => e
abort "EXITING: ConfigParseError: #{e.message}"
rescue StandardError => e
abort "EXITING: Exception: #{e.message}"
end
+
+# Display final configuration
+puts "--- #{Conf.name} #{Conf.version}"
+puts "YAML Parser \t #{YAML.name}"
+puts "Environment \t #{Conf.env}"
+puts "Config files \t #{Conf.files}"
+puts "Loging to file \t #{Conf[:log]}"
+
+
+# Quit if config dump requested
+if cmd_dump
+ puts Conf.dump
+ exit(0)
# Run daemon
run_options = {
ontop: false,