lib/puppet/provider/dsconfigad/default.rb
def flag_setter(setter, value, accepts_no_flag=false)
    flag = setter.to_s.chop
    args = if (value.to_s.empty? or value == :absent) and accepts_no_flag
      ["-no#{flag}"]
    else
      ["-#{flag}", value]
    end
    (@configuration_flags ||= []) << args
  end
# This links up with the crazy define_method routines to create
# setters that build CLI arguments
This links up with the crazy define_method routines to create
setters that build CLI arguments
This links up with the crazy define_method routines to create setters that build CLI arguments
def flag_setter(setter, value, accepts_no_flag=false)
    flag = setter.to_s.chop
    args = if (value.to_s.empty? or value == :absent) and accepts_no_flag
      ["-no#{flag}"]
    else
      ["-#{flag}", value]
    end
    (@configuration_flags ||= []) << args
  end
def flag_setter ( setter , value , accepts_no_flag = false ) flag = setter . to_s . chop args = if ( value . to_s . empty? or value == :absent ) and accepts_no_flag [ "-no#{flag}" ] else [ "-#{flag}" , value ] end ( @configuration_flags ||= [ ] ) << args end
This links up with the crazy define_method routines to create
setters that build CLI arguments
This links up with the crazy define_method routines to create setters that build CLI arguments
setter
value
accepts_no_flag