Class: GoogleSslCert::Global

Inherits:
Object
  • Object
show all
Defined in:
lib/google_ssl_cert/global.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Global

Returns a new instance of Global.



3
4
5
# File 'lib/google_ssl_cert/global.rb', line 3

def initialize(options={})
  @options = options
end

Instance Method Details

#global?Boolean

Returns:

  • (Boolean)


7
8
9
10
# File 'lib/google_ssl_cert/global.rb', line 7

def global?
  default_global = !%w[0 false].include?(ENV['GSC_GLOBAL']) # nil will default to true
  @options[:global].nil? ? default_global : @options[:global]
end