Sha256: 308f723eceaafbcac9e5dba91853c9c8d59eed964442767b2742cca5c21dd640

Contents?: true

Size: 560 Bytes

Versions: 1

Compression:

Stored size: 560 Bytes

Contents

namespace :gxapi do

  desc "Reload the Google Analytics Experiment data"
  task reload_experiments: :environment do
    Rails.logger.info { "Reloading Gxapi Experiments" }
    Gxapi.reload_experiments
    Rails.logger.info { "Reloading Gxapi Experiments Complete!" }
  end

  desc "Load experiments from API, to verify configuration"
  task verify_config: :environment do
    STDOUT.puts "Loading experiments..."
    experiments = Gxapi.verify.map { |exp| "#{exp['name']} - #{exp['status']}"}
    STDOUT.puts "Experiments #{experiments.join("\n")}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gxapi_rails-0.1.0 lib/tasks/gxapi.rake