class R10K::CLI::Deploy::TransformExcludeSpec

Public Instance Methods

call(input) click to toggle source
# 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