Class: Gantree::App

Inherits:
Base
  • Object
show all
Defined in:
lib/gantree/app.rb

Instance Method Summary collapse

Methods inherited from Base

#authenticate_librato, #cfm, #check_credentials, check_for_updates, #check_template_bucket, #create_default_env, #eb, #env_type, #error_msg, #escape_characters_in_string, #get_latest_docker_solution, #print_options, #s3, #set_aws_keys, #tag, update_configuration, #upload_templates

Constructor Details

#initialize(env, options) ⇒ App

Returns a new instance of App.



6
7
8
9
10
# File 'lib/gantree/app.rb', line 6

def initialize env, options
  check_credentials
  set_aws_keys
  @env = env
end

Instance Method Details

#restartObject



12
13
14
15
# File 'lib/gantree/app.rb', line 12

def restart
  eb.restart_app_server({ environment_name: "#{@env}" })
  puts "App is now restarting".green
end