Method: Update#update

Defined in:
lib/update.rb

#updateObject



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/update.rb', line 15

def update
  if @env == 'noenv'
    puts 'Environment name required to update settings.'
    return false
  end

  # error thrown by azure gem if these are bad

  Azure.config. = ENV['StorageAccount']
  Azure.config.storage_access_key = ENV['StorageAccountKey']
  @table = ENV['ConfigSettingsTable']

  puts
  puts 'Updating config table...'
  puts

  @svc = create_table_if_not_exists

  upsert_all @settings
end