Class: LicenseAcceptance::EnvAcceptance

Inherits:
Object
  • Object
show all
Defined in:
lib/license_acceptance/env_acceptance.rb

Instance Method Summary collapse

Instance Method Details

#accepted?(env) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/license_acceptance/env_acceptance.rb', line 4

def accepted?(env)
  look_for_value(env, "accept")
end

#no_persist?(env) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/license_acceptance/env_acceptance.rb', line 12

def no_persist?(env)
  look_for_value(env, "accept-no-persist")
end

#silent?(env) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/license_acceptance/env_acceptance.rb', line 8

def silent?(env)
  look_for_value(env, "accept-silent")
end