lib/shelly/user.rb in shelly-0.0.6 vs lib/shelly/user.rb in shelly-0.0.7

- old
+ new

@@ -1,8 +1,9 @@ module Shelly class User < Base attr_reader :email, :password + def initialize(email = nil, password = nil) @email = email @password = password end @@ -37,14 +38,14 @@ def self.guess_email @@guess_email ||= IO.popen("git config --get user.email").read.strip end - protected - def config_dir - File.expand_path("~/.shelly") - end + def config_dir + File.expand_path("~/.shelly") + end + protected def credentials_path File.join(config_dir, "credentials") end def credentials_exists?