lib/fanforce/cli/commands.rb in fanforce-cli-1.6.0 vs lib/fanforce/cli/commands.rb in fanforce-cli-1.7.0
- old
+ new
@@ -201,11 +201,11 @@
end
environments = (environment==:all) ? [:staging,:production] : [environment]
environments.each do |environment|
if [:all,:heroku].include?(command)
- remote_name = "#{environment==:staging ? 'stg' : 'prd'}-heroku"
+ remote_name = "#{env(environment)}-heroku"
setup_heroku(app, environment) if !(`git remote`).split(/\r?\n/).include?(remote_name)
vars = Env.vars_by_app(environment)[app.dir_name] || {}
puts "\n#{"Updating Env Vars".format(:green,:bold)} on Heroku #{environment.to_s.titleize} (#{vars.size} variables)..."
push_env_to(environment, app, vars)
@@ -467,13 +467,9 @@
puts '---------------------------------------------------------------------------------------------------------------'
end
######################################################################################################################
- def get_heroku_app_qa_name(app, environment)
- heroku_app_name = "#{environment==:production ? 'prd' : 'qa'}-#{app.dir_name}"
- heroku_app_name.length > 30 ? heroku_app_name.gsub!(/(a|e|i|o|u)/, '') : heroku_app_name
- end
def run_upgrade(app_dir, processed_count, total_count)
environment = :qa
app = App.load(app_dir)
puts "\n---------------------------------------------------------------------------------------------------------------"
\ No newline at end of file