get phone home call info for quick starts

Change-Id: I4aff73355b6ef35ee7be15930b04bd85805987b0
Reviewed-on: https://gerrit.instructure.com/2110
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
Reviewed-by: JT Olds <jt@instructure.com>
Tested-by: JT Olds <jt@instructure.com>
This commit is contained in:
JT Olds 2011-02-01 14:01:53 -07:00
parent c1f180bf7e
commit e04faaf1c9
2 changed files with 9 additions and 6 deletions

View File

@ -100,7 +100,8 @@ class ReportSnapshot < ActiveRecord::Base
"collection_type" => collection_type,
"installation_uuid" => installation_uuid,
"report_type" => self.report_type,
"data" => self.data
"data" => self.data,
"rails_env" => RAILS_ENV
}
if collection_type == "opt_in"

View File

@ -1064,7 +1064,7 @@ namespace :db do
gather_data = "opt_out"
if Rails.env.production?
if !Rails.env.test?
choose do |menu|
menu.header = "To help our developers better serve you, Instructure would like to collect some usage data about your Canvas installation. You can change this setting at any time."
menu.prompt = "> "
@ -1104,11 +1104,13 @@ namespace :db do
task :configure_account_name => :load_environment do
require 'highline/import'
name = ask("What do you want users to see as the account name? This should probably be the name of your organization. > ") { |q| q.echo = true }
if !Rails.env.test?
name = ask("What do you want users to see as the account name? This should probably be the name of your organization. > ") { |q| q.echo = true }
a = Account.default
a.name = name
a.save!
a = Account.default
a.name = name
a.save!
end
end
desc "Create all the initial data, including notifications and admin account"