Sha256: 385cd595c2ff2a80a9c545885779cbe25de98bf2886603db1fbb6b8fc4204ff2

Contents?: true

Size: 456 Bytes

Versions: 22

Compression:

Stored size: 456 Bytes

Contents

namespace :g5_updatable do
  DEFAULT_G5_HUB_CLIENTS_URL = 'https://g5-hub.herokuapp.com/clients.json'

  desc 'loads all of g5-hub into local DB. Note: the ENV variables for G5-Auth need to be set!'
  task load_all: :environment do
    clients_url = ENV['G5_HUB_CLIENTS_URL'] || DEFAULT_G5_HUB_CLIENTS_URL
    puts "loading clients from #{clients_url}...."

    G5Updatable::ClientFeedProcessor.load_all_clients(clients_url)
    puts 'Success!!'
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
g5_updatable-0.10.3 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.10.2 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.10.1 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.10.0 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.9.0 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.8.0 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.7.2 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.7.1 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.7.0 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.6.1 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.6.0 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.5.1 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.5.0 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.4.3 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.4.2 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.4.1 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.4.0 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.3.5 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.3.4 lib/tasks/g5_updatable_tasks.rake
g5_updatable-0.3.3 lib/tasks/g5_updatable_tasks.rake