lib/sfn/config.rb in sfn-3.0.32 vs lib/sfn/config.rb in sfn-3.1.0
- old
+ new
@@ -36,11 +36,13 @@
end
super(name, type, info)
end
# Only values allowed designating bool type
- BOOLEAN = BOOLEAN_VALUES = [TrueClass, FalseClass]
+ BOOLEAN = BOOLEAN_VALUES = [TrueClass, FalseClass].freeze
+ # Boolean type with nil included
+ TRISTATE_BOOLEAN = (BOOLEAN + [NilClass]).freeze
autoload :Conf, "sfn/config/conf"
autoload :Create, "sfn/config/create"
autoload :Describe, "sfn/config/describe"
autoload :Destroy, "sfn/config/destroy"
@@ -55,10 +57,11 @@
autoload :Lint, "sfn/config/lint"
autoload :List, "sfn/config/list"
autoload :Plan, "sfn/config/plan"
autoload :Print, "sfn/config/print"
autoload :Promote, "sfn/config/promote"
+ autoload :Realize, "sfn/config/realize"
autoload :Update, "sfn/config/update"
autoload :Validate, "sfn/config/validate"
attribute(
:config, String,
@@ -101,9 +104,14 @@
)
attribute(
:debug, [TrueClass, FalseClass],
:description => "Enable debug output",
:short_flag => "u",
+ )
+ attribute(
+ :log, String,
+ :description => "Enable logging with given level",
+ :short_flag => "G",
)
attribute(
:colors, [TrueClass, FalseClass],
:description => "Enable colorized output",
:default => true,