diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-08-29 15:51:43 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-08-29 15:51:43 +0100 |
commit | acaae2f43908fdb60779f232123e3b88d8bb39ee (patch) | |
tree | 899b48324c53c0f3b8018e363c908c991024daa3 /lib/tasks | |
parent | 2f8fb68994485be699da85a4c9deaa491bfaf5c6 (diff) |
Pass through verbose param, switch to false.
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/themes.rake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tasks/themes.rake b/lib/tasks/themes.rake index cfa3c0a61..9a03865ec 100644 --- a/lib/tasks/themes.rake +++ b/lib/tasks/themes.rake @@ -62,7 +62,7 @@ namespace :themes do File.directory?(theme_dir(theme_name)) end - def install_theme(theme_url, deprecated=false) + def install_theme(theme_url, verbose, deprecated=false) deprecation_string = deprecated ? " using deprecated THEME_URL" : "" theme_name = File.basename(theme_url, '.git') puts "Installing theme #{theme_name}#{deprecation_string} from #{theme_url}" @@ -74,12 +74,12 @@ namespace :themes do desc "Install themes specified in the config file's THEME_URLS" task :install => :environment do - verbose = true + verbose = false theme_urls = MySociety::Config.get("THEME_URLS", []) - theme_urls.each{ |theme_url| install_theme(theme_url) } + theme_urls.each{ |theme_url| install_theme(theme_url, verbose) } if theme_url = MySociety::Config.get("THEME_URL", nil) # Old version of the above, for backwards compatibility - install_theme(theme_url, deprecated=true) + install_theme(theme_url, verbose, deprecated=true) end end end
\ No newline at end of file |