lib/app42/base/help.rb in app42-0.6.4 vs lib/app42/base/help.rb in app42-0.7.0

- old
+ new

@@ -198,33 +198,36 @@ $app42 setupInfra Enter App Name: demo Checking App Name Availability... OK - 1: Shared - Select Instance Type [Shared]: + 1: Shared + 2: Dedicated + Select Instance Type [Shared]: - 1: Amazon (Oregon) - Select IaaS Provider [Amazon (Oregon)]: + 1: Amazon (Northern Virginia) + Select IaaS Provider [Amazon (Northern Virginia)]: - 1: Ruby 2.0.0 - 2: Java 6 - 3: Java 7 - 4: PHP 5.3 - 5: PHP 5.5 - 6: Node 0.10.22 - Select Runtime [Ruby 2.0.0]: + 1: Ruby 2.0.0 + 2: Java 6 + 3: Java 7 + 4: PHP 5.3 + 5: PHP 5.5 + 6: Node 0.10.22 + 7: Python 2.7 + 8: GO 1.3 + Select Runtime [Ruby 2.0.0]: - 1: Ruby on Rack - 2: Rails 4.0 - 3: Sinatra 1.4 - Select Framework [Ruby on Rack ]: + 1: Ruby on Rack + 2: Rails 4.0 + 3: Sinatra 1.4 + Select Framework [Ruby on Rack ]: - 1: Passenger 4.0 - 2: Thin 1.6 - 3: Unicorn 4.7 - Select Web Server [Passenger 4.0]: + 1: Passenger 4.0 + 2: Thin 1.6 + 3: Unicorn 4.7 + Select Web Server [Passenger 4.0]: Specify Kontena Power: 1 Setting up the infrastructure... OK @@ -295,10 +298,13 @@ Options: [--app APP] # Name of app, you want to scale Example: + + **For Shared App** + $app42 scale Enter App Name: demo 1: Horizontal 2: Vertical @@ -307,10 +313,27 @@ Horizontal scale by instance(s) [1]: Scaling Application demo by instance 1... OK Operation is in progress, Please wait...- Scale has been completed successfully. + + **For Dedicated App** + + $app42 scale + Enter App Name: demo + + 1: t1.micro + 2: m1.small + 3: m1.medium + 4: m1.large + 5: m1.xlarge + Select Instance Configuration [t1.micro]: 2 + + Scaling Application demo by instance m1.small... OK + + Operation is in progress, Please wait...- + Scale has been completed successfully. DESC end def descale print <<-DESC @@ -321,10 +344,13 @@ Options: [--app APP] # Name of app, you want to descale Example: + + **For Shared App** + $app42 descale Enter App Name: demo 1: Horizontal 2: Vertical @@ -333,10 +359,27 @@ Horizontal descale by instance(s) [1]: 1 Descaling Application demo by instance 1... OK Operation is in progress, Please wait...| Descale has been completed successfully. + + **For Dedicated App** + + Enter App Name: demo + + 1: t1.micro + 2: m1.small + 3: m1.medium + 4: m1.large + 5: m1.xlarge + + Select Instance Configuration [t1.micro]: 1 + + Descaling Application demo by instance t1.micro... OK + + Operation is in progress, Please wait...| + Descale has been completed successfully. DESC end def start print <<-DESC @@ -347,19 +390,35 @@ Options: [--app APP] # Name of app, you want to start Example: + + **For Shared App** + $app42 start --app demo Starting Application demo... OK Operation is in progress, Please wait... 1 out of 3 started - 2 out of 3 started | App has been started successfully. + + **For Dedicated App** + + Enter App Name: demo + + 1: Hard Start + 2: Soft Start + App Start Type [Hard Start]: 1 + + Starting Application demo... OK + + Operation is in progress, Please wait...- + App has been started successfully. DESC end def stop @@ -371,19 +430,35 @@ Options: [--app APP] # Name of app, you want to stop Example: + + **For Shared App** + $app42 stop --app demo Stopping Application demo... OK Operation is in progress, Please wait...- 1 out of 3 stopped - 2 out of 3 stopped - App has been stopped successfully. + + **For Dedicated App** + + Enter App Name: demo + + 1: Hard Stop + 2: Soft Stop + App Stop Type [Hard Stop]: 1 + + Stopping Application demo... OK + + Operation is in progress, Please wait... + App has been stopped successfully. DESC end def restart print <<-DESC @@ -394,17 +469,33 @@ Options: [--app APP] # Name of app, you want to restart Example: + + **For Shared App** + $app42 start --app demo Restarting Application demo... OK Operation is in progress, Please wait... 1 out of 3 restarted - 2 out of 3 restarted | + App has been restarted successfully. + + **For Dedicated App** + + Enter App Name: demo + + 1: Hard Restart + 2: Soft Restart + App Start Type [Hard Restart]: 1 + + Restarting Application demo... OK + + Operation is in progress, Please wait...- App has been restarted successfully. DESC end def deleteinfra