lib/app42/base/help.rb in app42-0.6.1 vs lib/app42/base/help.rb in app42-0.6.2
- old
+ new
@@ -17,17 +17,14 @@
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,
+ App42 PaaS is world's most advanced PaaS solution which supports multiple languages(Java, PHP, Ruby, Nodejs) and services
+ (RDBMS like MySQL and PostgreSQL to NoSQL storage like MongoDB, Redis 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
@@ -45,58 +42,68 @@
appInfo # Show meta information of the application
appState # Show current state of the application
logs # Returns the log file URL(s) for the application
addCustomURL # Add a custom URL to an app
removeCustomURL # Remove a custom URL from an app
- customURLInfo # List all custom URLs of an app
+ customURLInfo # List all custom URL(s) of an app
Services
- createService # Creates a new service e.g. MySQL, MongoDB, CouchDB, PostgreSQL etc.
+ createService # Creates a new service e.g. MySQL, MongoDB, CouchDB, PostgreSQL, Redis etc.
deleteService # Delete provisioned service
startService # Start the service
restartService # Restart the service
stopService # Stop the service
+ resetServicePassword # Reset password of provisioned service
scaleService # Vertically scale service by number of Kontena(s)
descaleService # Vertically descale services by number of Kontena(s)
- uploadBackup # Upload file data into a service
- services # List all the provisioned services with their meta details
- serviceInfo # Show meta information of the provisioned service
- resetServicePassword # Reset password of provisioned service
+ uploadBackup # Upload existing backup into a service
bindIP # Bind IP to provisioned service
unbindIP # Unbind IP from provisioned service
bindInfo # Show IP bind information related to provisioned service
+ services # List all the provisioned services with their meta details
+ serviceInfo # Show meta information of the provisioned service
- Misc
- supportedServices # List supported services by App42
- iaasProviders # List supported IaaS providers by App42
- runtimes # List supported runtimes by App42
- activities # List all activities with their status
-
- Setup
+ BPaaS
setupBPaaS # Setup App42 BPaaS by choosing required configuration
- deleteSetup # Delete the setup
+ deleteBPaaS # Delete the BPaaS setup
startBPaaS # Start the BPaaS setup
stopBPaaS # Stop the BPaaS setup
- setupInfo # Show setup information
upgradeBPaas # Upgrade BPaaS by choosing required configuration
downgradeBPaas # Downgrade BPaaS by choosing required configuration
- setups # List all the setups
+ bPaaSInfo # Show BPaaS setup information
+ bPaaSSetups # List all the BPaaS setups
WordPress
setupWordPress # Setup App42 WordPress by choosing required configuration
deleteWordPress # Delete the WordPress setup
startWordPress # Start the WordPress setup
stopWordPress # Stop the WordPress setup
upgradeWordPress # Upgrade WordPress by choosing required configuration
downgradeWordPress # Downgrade WordPress by choosing required configuration
wordPressInfo # Show WordPress setup information
- wordPressSetups # List all the WordPress setups
+ wordPressSetups # List all the WordPress setups
+ GPaaS
+ setupGPaaS # Setup App42 GPaaS by choosing required configuration
+ deleteGPaaS # Delete the GPaaS setup
+ startGPaaS # Start the GPaaS setup
+ stopGPaaS # Stop the GPaaS setup
+ upgradeGPaas # Upgrade GPaaS by choosing required configuration
+ downgradeGPaas # Downgrade GPaaS by choosing required configuration
+ gPaaSInfo # Show GPaaS setup information
+ gPaaSSetups # List all the GPaaS setups
+
Help
version # Show Ruby client gem version
help # List available commands and their description
COMMAND --help # Display detailed help of a specific command
+
+ Misc
+ supportedServices # List supported services by App42
+ iaasProviders # List supported IaaS providers by App42
+ runtimes # List supported runtimes by App42
+ activities # List all activities with their status
USAGE
end
def self.keys_help
print <<-USAGE
@@ -784,11 +791,11 @@
| 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 |
+ | restart | 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 |
@@ -965,86 +972,88 @@
Setup App42 BPaaS by choosing required configuration
Example:
$app42 setupBPaaS
- Enter Setup Name: railsdemo
+ Enter Setup Name: demo
Checking Setup Name Availability... OK
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)]:
1: Light
2: Medium
3: Heavy
- Select Flavour [Light]: 1
+ Select Flavour [Light]:
- Setting up the infrastructure... OK
+ Setting up the BPaaS infrastructure... OK
- Operation is in progress, Please wait...|
+ Operation is in progress, Please wait...-
+ BPaaS Setup has been completed successfully.
- Your setup has been completed successfully, For details, Login to your AppHQ console.
-
+ Your BPaaS setup has been completed successfully, For details, Login to PaaSHQ console.
DESC
end
- def deletesetup
+ def deletebpaas
print <<-DESC
Usage:
- app42 deleteSetup
+ app42 deleteBPaaS
Delete the setup
Example:
- $app42 deleteSetup
+ $app42 deleteBPaaS
Enter Setup Name: demo
Deleting Setup... OK
Operation is in progress, Please wait...-
Setup deleted successfully.
DESC
end
- def setupinfo
+ def bpaasinfo
print <<-DESC
Usage:
- app42 setupInfo
+ app42 bPaaSInfo
Show setup information
Example:
- $app42 setupInfo
+ $app42 bPaaSInfo
Enter Setup Name: demo
- +-----------------------+-------------------------------------+------------+-----------------+------------+---------+---------------+--------------+
- | === 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 |
- +-----------------------+-------------------------------------+------------+-----------------+------------+---------+---------------+--------------+
+
+ +-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
+ | === demo Details === |
+ +-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
+ | Created On | Api Server Url | Setup Name | Iaas Provider | Setup Type | Vm Type | Setup Flavour | Setup Status | App Hq Url |
+ +-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
+ | 2014-02-24 08:00:21.0 | https://democloudapi.iab.app42paas.com | demo | Amazon (Oregon) | BPaaS | Shared | light | RUNNING | https://demoapphq.iab.app42paas.com |
+ +-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
DESC
end
- def setups
+ def bpaassetups
print <<-DESC
Usage:
- app42 setups
+ app42 bPaaSSetups
- List all the setups
+ List all the BPaaS setups
Example:
- $app42 setups
- +-----------------------+-------------------------------------+------------+-----------------+------------+---------+---------------+--------------+
- | === 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 |
- +-----------------------+-------------------------------------+------------+-----------------+------------+---------+---------------+--------------+
+ $app42 bPaaSSetups
+
+ +-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
+ | === Setups List === |
+ +-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
+ | Created On | Api Server Url | Setup Name | Iaas Provider | Setup Type | Email | Vm Type | Setup Flavour | Setup Status | App Hq Url |
+ +-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
+ | 2014-02-24 08:00:21.0 | https://democloudapi.iab.app42paas.com | demo | Amazon (Oregon) | BPaaS | pravinmishra88@gmail.com | Shared | light | RUNNING | https://demoapphq.iab.app42paas.com |
+ +-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
DESC
end
def startbpaas
print <<-DESC
@@ -1059,11 +1068,10 @@
Starting BPaaS Setup demo... OK
Operation is in progress, Please wait...|
BPaaS setup demo started successfully.
-
DESC
end
def stopbpaas
print <<-DESC
@@ -1078,11 +1086,10 @@
Stopping BPaaS Setup demo... OK
Operation is in progress, Please wait...|
BPaaS setup demo stopped successfully.
-
DESC
end
def upgradebpaas
print <<-DESC
@@ -1137,31 +1144,31 @@
Setup App42 WordPress by choosing required configuration
Example:
$app42 setupWordPress
- Enter WordPress Name: demo
+ Enter Wordpress Name: demo
Checking WordPress Name Availability... OK
1: Shared
Select Instance Type [Shared]:
- 1: Amazon (Northern Virginia)
- Select IaaS Provider [Amazon (Northern Virginia)]:
+ 1: Amazon (Oregon)
+ Select IaaS Provider [Amazon (Oregon)]:
1: Light
2: Medium
3: Heavy
Select Flavour [Light]:
- Setting up the infrastructure... OK
+ Setting up the wordpress infrastructure... OK
Operation is in progress, Please wait...-
+ WordPress Setup has been completed successfully.
- Your WordPress setup has been completed successfully, For details, Login to AppHQ console.
-
+ Your WordPress setup has been completed successfully, For details, Login to PaaSHQ console.
DESC
end
def startwordpress
print <<-DESC
@@ -1170,16 +1177,16 @@
Start the WordPress setup
Example:
$app42 startWordPress
- Enter Setup Name: demo
- Starting WordPress Setup demo... OK
+ Enter Wordpress Name: demo
- Operation is in progress, Please wait...|
- Setup started successfully.
+ Starting Wordpress Setup demo... OK
+ Operation is in progress, Please wait...|
+ WordPress Setup has been started successfully.
DESC
end
def stopwordpress
print <<-DESC
@@ -1188,16 +1195,16 @@
Stop the WordPress setup
Example:
$app42 stopWordPress
- Enter Setup Name: demo
- Stopping WordPress Setup demo... OK
+ Enter Wordpress Name: demo
- Operation is in progress, Please wait...|
- Setup stopped successfully.
+ Stopping Wordpress Setup demo... OK
+ Operation is in progress, Please wait...|
+ WordPress Setup has been stopped successfully.
DESC
end
def upgradewordpress
print <<-DESC
@@ -1320,11 +1327,10 @@
Enter Custom URL: http://test.naveengoswami.com
Adding Custom URL To Application demo... OK
Custom URL added successfully.
-
DESC
end
def removecustomurl
print <<-DESC
@@ -1339,11 +1345,10 @@
Enter Custom URL: http://test.naveengoswami.com
Removing Custom URL... OK
Custom URL deleted successfully.
-
DESC
end
def customurlinfo
print <<-DESC
@@ -1361,12 +1366,183 @@
+----------+-----------------------+-------------------------------+
| App Name | Created On | Url |
+-------------+-----------------------+----------------------------+
| demo | 2014-01-27 06:35:55.0 | http://test.naveengoswami.com |
+----------+-----------------------+-------------------------------+
+ DESC
+ end
+ def setupgpaas
+ print <<-DESC
+Usage:
+ app42 setupGPaaS
+
+ Setup App42 GPaaS by choosing required configuration
+
+Example:
+ $ app42 setupGPaaS
+ Enter Setup Name: demo
+ Checking Setup Name Availability... OK
+
+ 1: Amazon (Northern Virginia)
+ Select IaaS Provider [Amazon (Northern Virginia)]:
+
+ 1: t1.micro
+ 2: m1.small
+ 3: m1.medium
+ 4: m1.large
+ 5: m1.xlarge
+ Select Instance Configuration [t1.micro]:
+
+ Setting up the GPaaS infrastructure... OK
+
+ Operation is in progress, Please wait...|
+ GPaaS Setup has been completed successfully.
+
+ Your GPaaS setup has been completed successfully, For details, Login to PaaSHQ console.
DESC
- end
+ end
+
+ def startgpaas
+ print <<-DESC
+Usage:
+ app42 startGPaaS
+
+ Start the GPaaS setup
+
+Example:
+ $app42 startGPaaS
+ Enter Setup Name: demo
+ Starting GPaaS Setup fsdfds... OK
+
+ Operation is in progress, Please wait...-
+ GPaaS Setup has been started successfully.
+ DESC
+ end
+
+ def stopgpaas
+ print <<-DESC
+Usage:
+ app42 stopGPaaS
+
+ Stop the GPaaS setup
+
+Example:
+ $app42 stopGPaaS
+ Enter Setup Name: demo
+ Stopping GPaaS Setup demo... OK
+
+ Operation is in progress, Please wait...|
+ GPaaS Setup has been stopped successfully.
+ DESC
+ end
+
+ def upgradegpaas
+ print <<-DESC
+Usage:
+ app42 upgradeGPaaS
+
+ Upgrade GPaaS by choosing required configuration
+
+Example:
+ $app42 upgradeGPaaS
+ Enter Setup Name: demo
+
+ 1: m1.small
+ 2: m1.medium
+ 3: m1.large
+ 4: m1.xlarge
+ Select Instance Configuration [m1.small]:
+
+ Upgrading Setup... OK
+
+ Operation is in progress, Please wait...|
+ GPaaS Setup has been updated successfully.
+ DESC
+ end
+
+ def downgradegpaas
+ print <<-DESC
+Usage:
+ app42 downgradeGPaaS
+
+ Downgrade GPaaS by choosing required configuration
+
+Example:
+ $app42 downgradeGPaaS
+ Enter Setup Name: demo
+
+ 1: t1.micro
+ Select Instance Configuration [t1.micro]:
+
+ Downgrading Setup... OK
+
+ Operation is in progress, Please wait...-
+ GPaaS Setup has been updated successfully.
+ DESC
+ end
+
+ def deletegpaas
+ print <<-DESC
+Usage:
+ app42 deleteGPaaS
+
+ Delete the GPaaS setup
+
+Example:
+ $app42 deleteGPaaS
+ Enter Setup Name: demo
+ Deleting Setup... OK
+
+ Operation is in progress, Please wait...-
+ Setup deleted successfully.
+ DESC
+ end
+
+ def gpaasinfo
+ print <<-DESC
+Usage:
+ app42 gPaaSInfo
+
+ Show GPaaS setup information
+
+Options:
+ [--setup SETUP] # Name of setup, you want to info
+
+Example:
+ $ app42 gPaaSInfo
+ Enter Setup Name: demo
+
+ +-----------------------+-------------------------------------------+------------+----------------------------+------------+-----------+---------------+--------------+
+ | === gpaas Details === |
+ +-----------------------+-------------------------------------------+------------+----------------------------+------------+-----------+---------------+--------------+
+ | Created On | Api Server Url | Setup Name | Iaas Provider | Setup Type | Vm Type | Setup Flavour | Setup Status |
+ +-----------------------+-------------------------------------------+------------+----------------------------+------------+-----------+---------------+--------------+
+ | 2014-02-21 09:36:43.0 | ec2-54-237-87-107.compute-1.amazonaws.com | demo | Amazon (Northern Virginia) | GPaaS | Dedicated | t1.micro | RUNNING |
+ +-----------------------+-------------------------------------------+------------+----------------------------+------------+-----------+---------------+--------------+
+ DESC
+ end
+
+ def gpaassetups
+ print <<-DESC
+Usage:
+ app42 gPaaSSetups
+
+ List all the GPaaS setups
+
+Example:
+ $app42 app42 gPaaSSetups
+
+ +-----------------------+-------------------------------------------+------------+----------------------------+------------+--------------------------+-----------+---------------+--------------+
+ | === Setups List === |
+ +-----------------------+-------------------------------------------+------------+----------------------------+------------+--------------------------+-----------+---------------+--------------+
+ | Created On | App Url | Setup Name | Iaas Provider | Setup Type | Email | Vm Type | Setup Flavour | Setup Status |
+ +-----------------------+-------------------------------------------+------------+----------------------------+------------+--------------------------+-----------+---------------+--------------+
+ | 2014-02-06 13:49:07.0 | ec2-54-221-96-246.compute-1.amazonaws.com | demo | Amazon (Northern Virginia) | GPaaS | pravinmishra88@gmail.com | Dedicated | t1.micro | RUNNING |
+ +-----------------------+-------------------------------------------+------------+----------------------------+------------+--------------------------+-----------+---------------+--------------+
+
+ DESC
+ end
def version
print <<-DESC
Usage:
app42 version