lib/glman/commands/configs/users_config.rb in glman-0.1.1 vs lib/glman/commands/configs/users_config.rb in glman-0.1.2
- old
+ new
@@ -10,10 +10,10 @@
DEFAULT = {}
def set(users={})
raise UsersConfigurationError.new('incorrect data') unless users.kind_of? Hash
- hash = nil if hash.empty?
+ hash = nil if users.empty?
config_manager.set(users: users)
end
def get
config_manager.get[:users] || DEFAULT