lib/sphinx_tv.rb in sphinx_tv-0.9.3 vs lib/sphinx_tv.rb in sphinx_tv-0.9.4

- old
+ new

@@ -87,11 +87,10 @@ @config.merge! c return true end def save_configuration - Dir.mkdir(CONFIG_DIRECTORY) unless File.exists? CONFIG_DIRECTORY File.open(File.join(CONFIG_DIRECTORY, "sphinx.yml"), "w") do |file| file.write @config.to_yaml end end @@ -182,9 +181,10 @@ end end end def run + Dir.mkdir(CONFIG_DIRECTORY) unless File.exists? CONFIG_DIRECTORY @no_config = load_configuration action = nil optparse = OptionParser.new do |opts| \ No newline at end of file