lib/preinstaller.rb in cocoapods-keys-1.5.0 vs lib/preinstaller.rb in cocoapods-keys-1.5.1
- old
+ new
@@ -9,14 +9,16 @@
def setup
require 'key_master'
require 'keyring_liberator'
require 'pod/command/keys/set'
require 'cocoapods/user_interface'
+ require 'dotenv'
ui = Pod::UserInterface
options = @user_options || {}
current_dir = Pathname.pwd
+ Dotenv.load
project = options.fetch('project') { CocoaPodsKeys::NameWhisperer.get_project_name }
keyring = KeyringLiberator.get_current_keyring(project, current_dir)
unless keyring