Class: Gantree::App
Instance Method Summary collapse
-
#initialize(env, options) ⇒ App
constructor
A new instance of App.
- #restart ⇒ Object
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, check_credentials set_aws_keys @env = env end |
Instance Method Details
#restart ⇒ Object
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 |