test/support/app.rb in ns-options-0.1.1 vs test/support/app.rb in ns-options-0.2.0
- old
+ new
@@ -1,12 +1,18 @@
+require 'ns-options/boolean'
+
module App
- include NsOptions::HasOptions
+
+ # mixin on just the top-level NsOptions variant
+ include NsOptions
+
options(:settings, "settings:app") do
option :root, Pathname
option :stage
option :logger, Logger
+ option :self_stage, :default => Proc.new { self.stage }
namespace :sub do
- option :run_commands, NsOptions::Option::Boolean
+ option :run_commands, NsOptions::Boolean
end
end
end