Explorar el Código

Allow forcing log

master
Dylan Baker hace 5 años
padre
commit
645b249df3
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      Rakefile

+ 2
- 1
Rakefile Ver fichero

@@ -9,7 +9,8 @@ task 'migrate' do
9 9
 end
10 10
 
11 11
 task 'scrape' do
12
-  scraper = Scraper.new(log: ENV['APP_ENV'] == 'development')
12
+  should_log = ENV['APP_ENV'] == 'development' || ARGV.include?('--log')
13
+  scraper = Scraper.new(log: should_log)
13 14
   scraper.scrape
14 15
 end
15 16
 

Loading…
Cancelar
Guardar