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:
parent
c1f180bf7e
commit
e04faaf1c9
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue