bin/toadie in toadie-0.0.5 vs bin/toadie in toadie-0.0.6
- old
+ new
@@ -17,12 +17,15 @@
# opts.password? #=> false
# opts[:name] #=> 'lee'
config_file = opts[:config] || File.join(Toadie.root, '.toadie.json')
if File.exist?(config_file)
- config = JSON.parse(File.read(config_file))
+ config = JSON.parse(File.read(config_file))
+ Toadie.file_extensions = config["file_extensions"]
+ Toadie.todo_markers = config["todo_markers"]
+
Array(config["authors"]).each do |attributes|
Toadie::Author.create(attributes)
end
end
-Toadie::Run.new.start
\ No newline at end of file
+Toadie::Run.new.start