Class: R10K::CLI::Deploy::TransformExcludeSpec
- Inherits:
-
Object
- Object
- R10K::CLI::Deploy::TransformExcludeSpec
- Defined in:
- lib/r10k/cli/deploy.rb
Instance Method Summary collapse
Instance Method Details
#call(input) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/r10k/cli/deploy.rb', line 15 def call(input) # To be backward compatible with the 3.x flag version of this setting, # r10k allows this flag to have an optional argument. When no argument # is supplied, cri defaults to setting the class to true, so we check # for TrueClass here as well as "true". return true if input == true || input == 'true' return false if input == 'false' raise ArgumentError end |