lib/stash/config.rb in face_control-0.9.0 vs lib/stash/config.rb in face_control-0.9.1
- old
+ new
@@ -6,10 +6,16 @@
@config_file = config_file
fail "#{@config_file} does not exist" unless File.exist?(@config_file)
end
+ def server(logger = nil)
+ Server.new(host, user, password, logger)
+ end
+
+ private
+
def host
config['stash_url']
end
def user
@@ -17,11 +23,9 @@
end
def password
config['password']
end
-
- private
def config
@config ||= YAML.load_file(@config_file)
end
end