lib/nicht/settings.rb in nicht-0.1.4 vs lib/nicht/settings.rb in nicht-0.1.6

- old
+ new

@@ -1,15 +1,13 @@ -# require 'nicht/exceptions' - module Nicht class Settings FILENAME = '~/.nichtrc'.freeze def initialize(path) @path = File.expand_path path end - def valid? + def get_path raise Nicht::SettingsNotFound unless File.exist? @path projects_path = File.expand_path(File.read(@path)) raise Nicht::SettingsNotValid unless File.exist? projects_path projects_path end \ No newline at end of file