lib/glman/configuration.rb in glman-0.0.5 vs lib/glman/configuration.rb in glman-0.0.6
- old
+ new
@@ -11,9 +11,13 @@
def build_config(config={})
validare_config(config)
File.write(config_file, config.to_yaml)
end
+ def show_aliases
+ load[:aliases]
+ end
+
def add_user_alias(opts={})
config = load
aliases = config[:aliases] || {}
aliases[opts.fetch(:alias)] = opts.fetch(:email)
config[:aliases] = aliases