lib/pod/command/keys.rb in cocoapods-keys-1.4.0 vs lib/pod/command/keys.rb in cocoapods-keys-1.5.0
- old
+ new
@@ -14,8 +14,20 @@
CocoaPods Keys will store sensitive data in your Mac's keychain. Then on running pod install they will be installed into your app's source code via the Pods library.
DESC
self.abstract_command = true
self.default_subcommand = 'list'
+
+ def create_keyring
+ current_dir = Pathname.pwd
+ name = @project_name || CocoaPodsKeys::NameWhisperer.get_project_name
+ CocoaPodsKeys::Keyring.new(name, current_dir, [])
+ end
+
+ def get_current_keyring
+ current_dir = Pathname.pwd
+ project = @project_name || CocoaPodsKeys::NameWhisperer.get_project_name
+ CocoaPodsKeys::KeyringLiberator.get_current_keyring(project, current_dir)
+ end
end
end
end