Method: Tane::Helpers::Init.initialize_app

Defined in:
lib/tane/helpers/init_helper.rb

.initialize_appObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/tane/helpers/init_helper.rb', line 5

def initialize_app
  term.say "Initializing a local Cloudfuji app for this rails app..."
  if cloudfuji_app_exists?
    update_app
  else
    app = create_app
    make_app_cloudfuji_dir
    save_envs(get_app_envs(app['app']['name']))
    save_emails
  end

  term.say "Finished successfully! Check out .cloudfuji/tane.yml for the env vars if you care, or .cloudfuji/emails/#{example_email_template.keys.first}.yml to create email templates to test with"
end