class LicenseAcceptance::Strategy::Environment

Look for acceptance values in the environment

def accepted?

def accepted?
  look_for_value(ACCEPT)
end

def initialize(env)

def initialize(env)
  @env = env
end

def look_for_value(sought)

def look_for_value(sought)
  if env['CHEF_LICENSE'] && env['CHEF_LICENSE'].downcase == sought
    return true
  end
  return false
end

def no_persist?

def no_persist?
  look_for_value(ACCEPT_NO_PERSIST)
end

def silent?

def silent?
  look_for_value(ACCEPT_SILENT)
end