Class: Pod::Installer::InstallationOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/swordfish/native/installation_options.rb

Class Method Summary collapse

Class Method Details

.env_option(key, default = true) ⇒ Object



7
8
9
# File 'lib/swordfish/native/installation_options.rb', line 7

def self.env_option(key, default = true)
  option key, ENV[key.to_s].nil? ? default : ENV[key.to_s] == 'true'
end