Allow skipping label fetch

pull/6827/head
friflaj 14 years ago
parent b5cfc0ca99
commit 7a3515524e
  1. 19
      lib/tasks/install.rake

@ -16,15 +16,18 @@ namespace :redmine do
puts " Redmine Backlogs Installer"
puts "====================================================="
puts "Installing to the #{ENV['RAILS_ENV']} environment."
print "Fetching card labels from http://git.gnome.org..."
STDOUT.flush
begin
Cards::TaskboardCards.fetch_labels
print "done!\n"
rescue Exception => fetch_error
print "\nCard labels could not be fetched (#{fetch_error}). Please try again later. Proceeding anyway...\n"
if ! ['no', 'false'].include?("#{ENV['labels']}".downcase)
print "Fetching card labels from http://git.gnome.org..."
STDOUT.flush
begin
Cards::TaskboardCards.fetch_labels
print "done!\n"
rescue Exception => fetch_error
print "\nCard labels could not be fetched (#{fetch_error}). Please try again later. Proceeding anyway...\n"
end
end
trackers = Tracker.find(:all)
if Story.trackers.length == 0

Loading…
Cancel
Save