lib/keyring_liberator.rb in cocoapods-keys-0.9.5 vs lib/keyring_liberator.rb in cocoapods-keys-1.0.0
- old
+ new
@@ -18,9 +18,13 @@
end
def self.get_keyring(path)
get_keyring_at_path(yaml_path_for_path(path))
end
+
+ def self.get_keyring_named(name)
+ self.get_all_keyrings.find { |k| k.name == name }
+ end
def self.save_keyring(keyring)
`mkdir -p #{keys_dir}`
File.open(yaml_path_for_path(keyring.path), 'w') {|f| f.write(YAML::dump(keyring.to_hash)) }