spec/support/suite.rb in tengine_support-0.3.17 vs spec/support/suite.rb in tengine_support-0.3.18

- old
+ new

@@ -32,10 +32,11 @@ :parameters => { :logger_name => proc{ "#{File.basename(__FILE__, '.*')}_stdout"} }, :dependencies => { :process_config => :process, :log_common => :log_common,}, &hide_about_rotation) add(:process_stderr_log, App1::LoggerConfig, :parameters => { :logger_name => "#{File.basename(__FILE__, '.*')}_stderr" }, :dependencies => { :process_config => :process, :log_common => :log_common,}, &hide_about_rotation) + ignore(:app2_settings, :app3_settings) separator("\nGeneral:") __action__(:version, "show version"){ STDOUT.puts "1.1.1"; exit } __action__(:dump_skelton, "dump skelton of config"){ STDOUT.puts YAML.dump(root.to_hash); exit } __action__(:help , "show this help message"){ STDOUT.puts option_parser.help; exit } @@ -51,10 +52,10 @@ end end # build_suite1 との違いは、:dbが Tengine::Support::Config::Mongoid::Connectionではなくて、 -# 単なるhashのfieldとして定義している点です +# 単なるhashのfieldとして定義している点と ignore(:app2_settings, :app3_settings) の定義がない点です。 def build_suite2 Tengine::Support::Config.suite do banner <<EOS Usage: config_test [-k action] [-f path_to_config] [-H db_host] [-P db_port] [-U db_user] [-S db_pass] [-B db_database]