lib/app42/base/help.rb in app42-0.5.6 vs lib/app42/base/help.rb in app42-0.5.7

- old
+ new

@@ -16,10 +16,18 @@ print <<-USAGE #{how_to} + Thank You for installing App42 PaaS Ruby Client! This is a powerful tool to make your Applications live with-in minutes. + App42 PaaS is world's most advanced PaaS solution which supports multiple languages(Java, PHP, Ruby) and services + (RDBMS like MySQL and PostgreSQL to NoSQL storage like MongoDB and CouchDB). To Get Started Signup at app42paas.shephertz.com, + get your API Key and Secret key after you login and finally use App42 command to push your code to cloud. Enjoy Coding!! + + $ app42 addKeys + + Key keys # List API key and Secret key addKeys # Add API key and Secret key clearKeys # Clear API key and Secret key @@ -56,12 +64,12 @@ iaasProviders # List supported IaaS providers by App42 runtimes # List supported runtimes by App42 activities # List all activities with their status Setup - setupCloudAPI # Setup App42 cloud API by choosing required configuration - deleteCloudAPI # Delete App42 cloud API setup + setupBPaaS # Setup App42 BPaaS by choosing required configuration + deleteSetup # Delete the setup setupInfo # Show setup information setups # List all the setups Help version # Show Ruby client gem version @@ -186,11 +194,11 @@ Operation is in progress, Please wait.../ Setup Infra completed successfully. - Default application has been deployed. You can visit 'demo.aws.app42paas.com' to see the default application. + Default application has been deployed. You can visit 'https://demo.iab.app42paas.com' to see the default application. DESC end def apps @@ -201,17 +209,17 @@ List all the deployed applications with their meta details Example: $app42 apps -+------------------------+------------+-----------------+---------------+---------+------+ -| === My Apps === | -+------------------------+------------+-----------------+---------------+---------+------+ -| App Url | App Status | Container Count | Iaas Provider | Vm Type | Name | -+------------------------+------------+-----------------+---------------+---------+------+ -| demo.aws.app42paas.com | RUNNING | 1 | Amazon | Shared | demo | -+------------------------+------------+-----------------+---------------+---------+------+ + +--------------------------------+------------+-----------------+------+------------+----------------+--------+ + | === My Apps === | + +--------------------------------+------------+-----------------+------+------------+----------------+--------+ + | App Url | App Status | Iaas Provider | Name | Runtime | Instance Count | Memory | + +--------------------------------+------------+-----------------+------+------------+----------------+--------+ + | https://demo.iab.app42paas.com | RUNNING | Amazon (Oregon) | demo | Ruby 2.0.0 | 1 | 256 MB | + +--------------------------------+------------+-----------------+------+------------+----------------+--------+ DESC end def deploy @@ -413,19 +421,19 @@ Options: [--app APP] # Name of app, you want to info Example: - $app42 appInfo --app demo - Application Name: demo - +------------------------+------------+---------------+------+----------+----------------+--------+ - | === demo Info === | - +------------------------+------------+---------------+------+----------+----------------+--------+ - | App Url | App Status | Iaas Provider | Name | Runtime | Instance Count | Memory | - +------------------------+------------+---------------+------+----------+----------------+--------+ - | demo.aws.app42paas.com | RUNNING | Amazon | demo | Ruby 2.0 | 1 | 512 MB | - +------------------------+------------+---------------+------+----------+----------------+--------+ + $app42 appInfo + Enter App Name: demo + +--------------------------------+------------+-----------------+------+------------+----------------+--------+ + | === demo Info === | + +--------------------------------+------------+-----------------+------+------------+----------------+--------+ + | App Url | App Status | Iaas Provider | Name | Runtime | Instance Count | Memory | + +--------------------------------+------------+-----------------+------+------------+----------------+--------+ + | https://demo.iab.app42paas.com | RUNNING | Amazon (Oregon) | demo | Ruby 2.0.0 | 1 | 256 MB | + +--------------------------------+------------+-----------------+------+------------+----------------+--------+ DESC end def appstate print <<-DESC @@ -455,18 +463,19 @@ Returns the log URL(s) for the application Example: $app42 logs Enter App Name: demo - Please visit below URL(s) to access app logs +Please visit below URL(s) to access app logs - +----------------------------------------------------------------------------+ - | Log URL(s) | - +----------------------------------------------------------------------------+ - | demo.aws.app42paas.com/getInstanceLog?id=fi1nyi7bh68nvz0riyqrfup8lkm57qiu | - | demo.aws.app42paas.com/getInstanceLog?id=v1bta5rg2tsycat31r3pzc28sa7d1bjy | - +----------------------------------------------------------------------------+ ++-----------------------------------------------------------------------------------+ +| Log URL(s) | ++-----------------------------------------------------------------------------------+ +| https://apphq.app42paas.com/app/getInstanceLog?id=eyk3t10hz9nwc12e08f92jxcmz83uo2u | +| https://apphq.app42paas.com/app/getInstanceLog?id=zijqty8n5ufna677wgbxwywca5laqkw5 | +| https://apphq.app42paas.com/app/getInstanceLog?id=wynv58rt509yj7fqwbkh80zlw6isf6g2 | ++-----------------------------------------------------------------------------------+ DESC end def createservice @@ -476,11 +485,11 @@ Creates a new service e.g. MySQL, MongoDB, CouchDB, PostgreSQL etc. Example: $app42 createService - Enter Service Name: mysqldemo + Enter Service Name: mysqldb Checking Service Name Availability... OK 1: MySQL 5.5.31 2: Mongodb 2.4.4 3: Couchdb 1.0.1 @@ -490,27 +499,27 @@ Enter Database Name: demo_db 1: Shared Select Instance Type [Shared]: - 1: Amazon us-west-2 - Select IaaS Provider [Amazon us-west-2]: + 1: Amazon (Oregon) + Select IaaS Provider [Amazon (Oregon)]: - Specify Kontena Power: 5 + Specify Kontena Power: 1 Creating Service... OK - + Operation is in progress, Please wait...| Service created successfully. - +---------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ - | === mysqldemo Details === | - +---------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ - | Database Name | Iaas Provider | Vm Ip | State | User Name | Vm Port | Service Type | Password | Memory | Service Name | - +---------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ - | demodb | Amazon | 10.0.0.52 | RUNNING | j7zz1jsx1bb4eiz1 | 49695 | MySQL 5.5.1 | teh77o4b6kpb22ab6oogfu9lwru9vrlj | 512 MB | mysqldemo | - +---------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ + +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ + | === mysqldb Details === | + +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ + | Database Name | Iaas Provider | Token | Vm Ip | State | User Name | Vm Port | Service Type | Password | Memory | Service Name | + +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ + | demo_db | Amazon (Oregon) | ytxsq0ov7lf5s4foh2igw01bwy32ydgp | 172.16.2.167 | RUNNING | aoafi8vgczxoftw4 | 12411 | MySQL 5.5.31 | a2rzmvrdr7hpa08a6k1a1r24ixdutyl9 | 256 MB | mysqldb | + +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ DESC end def deleteservice print <<-DESC @@ -624,21 +633,20 @@ Options: [--service SERVICE] # Name of service Example: - $app42 serviceInfo - 1: mysqldemo - Select Service: 1 + 1: mysqldb + Select Service [mysqldb]: - +---------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ - | === mysqldemo Details === | - +---------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ - | Database Name | Iaas Provider | Vm Ip | State | User Name | Vm Port | Service Type | Password | Memory | Service Name | - +---------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ - | demodb | Amazon | 10.0.0.52 | RUNNING | 5hk1tmdmkr16b94f | 52108 | MySQL 5.5.1 | 2otwxwpu8mskmmvwt7bx4r2fzw4ytls0 | 512 MB | mysqldemo | - +---------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ + +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ + | === mysqldb Details === | + +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ + | Database Name | Iaas Provider | Token | Vm Ip | State | User Name | Vm Port | Service Type | Password | Memory | Service Name | + +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ + | demo_db | Amazon (Oregon) | ytxsq0ov7lf5s4foh2igw01bwy32ydgp | 172.16.2.167 | RUNNING | aoafi8vgczxoftw4 | 12411 | MySQL 5.5.31 | a2rzmvrdr7hpa08a6k1a1r24ixdutyl9 | 256 MB | mysqldb | + +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ DESC end def supportedservices print <<-DESC @@ -669,20 +677,28 @@ List all activities with their status Example: $app42 activities - +---------------+-----------+---------+---------+-----------------------+ - | === User Activities === | - +---------------+-----------+---------+---------+-----------------------+ - | Operation | Status | Name | Type | Date | - +---------------+-----------+---------+---------+-----------------------+ - | setupInfra | COMPLETED | demo | APP | 2013-08-27 06:24:03.0 | - | scale | COMPLETED | demo | APP | 2013-08-27 06:32:15.0 | - | createService | COMPLETED | couchdb | SERVICE | 2013-08-27 06:33:56.0 | - | setupInfra | COMPLETED | demo1 | APP | 2013-08-27 07:00:47.0 | - +---------------+-----------+---------+---------+-----------------------+ + +------------+-----------+------+------+-----------------------+ + | === User Activities === | + +------------+-----------+------+------+-----------------------+ + | Operation | Status | Name | Type | Date | + +------------+-----------+------+------+-----------------------+ + | setupInfra | COMPLETED | demo | APP | 2013-10-25 06:18:42.0 | + | scale | COMPLETED | demo | APP | 2013-10-25 06:40:39.0 | + | scale | COMPLETED | demo | APP | 2013-10-25 06:41:25.0 | + | descale | COMPLETED | demo | APP | 2013-10-25 06:42:12.0 | + | descale | COMPLETED | demo | APP | 2013-10-25 06:42:13.0 | + | rerstart | COMPLETED | demo | APP | 2013-10-25 06:44:31.0 | + | stop | COMPLETED | demo | APP | 2013-10-25 06:45:23.0 | + | start | COMPLETED | demo | APP | 2013-10-25 06:45:49.0 | + | scale | COMPLETED | demo | APP | 2013-10-25 06:52:56.0 | + | scale | COMPLETED | demo | APP | 2013-10-25 06:53:24.0 | + | descale | COMPLETED | demo | APP | 2013-10-25 06:58:10.0 | + | descale | COMPLETED | demo | APP | 2013-10-25 06:58:10.0 | + +------------+-----------+------+------+-----------------------+ DESC end def runtimes print <<-DESC @@ -719,13 +735,12 @@ +-----------------+-----------------+ | === Available IaaS Providers === | +-----------------+-----------------+ | Name | Zone | +-----------------+-----------------+ - | Amazon | US West-2a | + | Amazon | (Oregon) | +-----------------+-----------------+ - DESC end def app42_update @@ -844,31 +859,28 @@ | demodb | Amazon | 54.218.127.245 | 122.162.124.222 | RUNNING | j7zz1jsx1bb4eiz1 | 49695 | MySQL 5.5.1 | z2qo1vxeadak6jsmt9upobytwptc5eo0 | 512 MB | mysqldemo | +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+ DESC end - def setupcloudapi + def setupbpaas print <<-DESC Usage: - app42 setupCloudAPI + app42 setupBPaaS - Setup App42 cloud API by choosing required configuration + Setup App42 BPaaS by choosing required configuration Example: - $app42 setupCloudAPI + $app42 setupBPaaS Enter Setup Name: railsdemo Checking Setup Name Availability... OK 1: Shared Select Instance Type [Shared]: 1: Amazon us-west-2 Select IaaS Provider [Amazon us-west-2]: - 1: App42CloudAPI - Select Setup Type [App42CloudAPI]: - 1: Light 2: Medium 3: Heavy Select Flavour [Light]: 1 @@ -879,21 +891,21 @@ Your setup has been completed successfully, For details, Login to your AppHQ console. DESC end - def deletecloudapi + def deletesetup print <<-DESC Usage: - app42 deleteCloudAPI + app42 deleteSetup - Delete App42 cloud API setup + Delete the setup Example: - $app42 deleteCloudAPI + $app42 deleteSetup Enter Setup Name: demo - Deleting Cloud API... OK + Deleting Setup... OK Operation is in progress, Please wait...- Setup deleted successfully. DESC end @@ -906,17 +918,17 @@ Show setup information Example: $app42 setupInfo Enter Setup Name: demo - +-----------------------+--------------------------------+------------+------------------+------------+---------+---------------+--------------+-----------------------------+ - | === demo Details === | - +-----------------------+--------------------------------+------------+------------------+------------+---------+---------------+--------------+-----------------------------+ - | Created On | Api Server Url | Setup Name | Iaas Provider | Setup Type | Vm Type | Setup Flavour | Setup Status | App Hq Url | - +-----------------------+--------------------------------+------------+------------------+------------+---------+---------------+--------------+-----------------------------+ - | 2013-10-16 13:05:12.0 | democloudapi.aws.app42paas.com | demo | Amazon us-west-2 | CLOUDAPI | Shared | light | RUNNING | demoapphq.aws.app42paas.com | - +-----------------------+--------------------------------+------------+------------------+------------+---------+---------------+--------------+-----------------------------+ + +-----------------------+-------------------------------------+------------+-----------------+------------+---------+---------------+--------------+ + | === demo Details === | + +-----------------------+-------------------------------------+------------+-----------------+------------+---------+---------------+--------------+ + | Created On | Api Server Url | Setup Name | Iaas Provider | Setup Type | Vm Type | Setup Flavour | Setup Status | + +-----------------------+-------------------------------------+------------+-----------------+------------+---------+---------------+--------------+ + | 2013-10-28 15:00:46.0 | https://demoapphq.iab.app42paas.com | demo | Amazon (Oregon) | CLOUDAPI | Shared | light | RUNNING | + +-----------------------+-------------------------------------+------------+-----------------+------------+---------+---------------+--------------+ DESC end def setups print <<-DESC @@ -925,16 +937,16 @@ List all the setups Example: $app42 setups - +-----------------------+--------------------------------+------------+------------------+------------+---------+---------------+--------------+-----------------------------+ - | === Setups List === | - +-----------------------+--------------------------------+------------+------------------+------------+---------+---------------+--------------+-----------------------------+ - | Created On | Api Server Url | Setup Name | Iaas Provider | Setup Type | Vm Type | Setup Flavour | Setup Status | App Hq Url | - +-----------------------+--------------------------------+------------+------------------+------------+---------+---------------+--------------+-----------------------------+ - | 2013-10-16 13:05:12.0 | democloudapi.aws.app42paas.com | demo | Amazon us-west-2 | CLOUDAPI | Shared | light | RUNNING | demoapphq.aws.app42paas.com | - +-----------------------+--------------------------------+------------+------------------+------------+---------+---------------+--------------+-----------------------------+ + +-----------------------+-------------------------------------+------------+-----------------+------------+---------+---------------+--------------+ + | === Setups List === | + +-----------------------+-------------------------------------+------------+-----------------+------------+---------+---------------+--------------+ + | Created On | Api Server Url | Setup Name | Iaas Provider | Setup Type | Vm Type | Setup Flavour | Setup Status | + +-----------------------+-------------------------------------+------------+-----------------+------------+---------+---------------+--------------+ + | 2013-10-28 15:00:46.0 | https://demoapphq.iab.app42paas.com | demo | Amazon (Oregon) | CLOUDAPI | Shared | light | RUNNING | + +-----------------------+-------------------------------------+------------+-----------------+------------+---------+---------------+--------------+ DESC end def version print <<-DESC