lib/app42/base/help.rb in app42-0.5.3 vs lib/app42/base/help.rb in app42-0.5.4
- old
+ new
@@ -37,11 +37,11 @@
restart # Restart the application
deleteInfra # Delete the Infrastructure environment
apps # List all the deployed applications with their meta details
appInfo # Show meta information of the application
appState # Show current state of the application
- logs # Returns the log file URLs for the application
+ logs # Returns the log file URL(s) for the application
Services
createService # Creates a new service e.g. MySQL, MongoDB, CouchDB, PostgreSQL etc.
deleteService # Delete provisioned service
services # List all the provisioned services with their meta details
@@ -53,10 +53,11 @@
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
Help
version # Show Ruby client gem version
help # List available commands and their description
COMMAND --help # Display detailed help of a specific command
@@ -102,11 +103,11 @@
API Key = <apiKey>
Secret Key = <secretKey>
DESC
end
- def addKeys
+ def addkeys
print <<-DESC
Usage:
app42 addKeys
Add API key and Secret key
@@ -122,66 +123,79 @@
Enter Secret Key:: <secretKey>
Adding keys...done
DESC
end
- def clearKeys
+ def clearkeys
print <<-DESC
Usage:
app42 clearKeys
- Clear API key and Secret key from dev system
+ Clear API key and Secret key
Example:
app42 clearKeys
- == Local credentials cleared ==
+ Do you want to delete existing keys? [Yn]: y
+
+ === API key and Secret key have been deleted. ===
DESC
end
- def setupInfra
+ def setupinfra
print <<-DESC
Usage:
app42 setupInfra
- Setup the complete runtime environment
+ Setup your deployment and runtime environment i.e. Instance(Memory, CPU) and Technology Stack
Example:
$app42 setupInfra
- 1: Shared
- Select Virtual Machine Type: 1
- 1: Amazon
- Select IaaS Provider: 1
Application Name: demo
+
Checking App Name Availability... OK
- 1: Ruby
- 2: Java
- 3: Php
- 4: Node
- Select Runtime: 2
- 1: Grails 1.3.7
- Select Framework: 1
- 1: Tomcat 6.0.36
- Select Web Server: 1
- 1: 512MB
- 2: 1024MB
- 3: 2048MB
- Memory Limit: 1
- Creating Infrastructure... OK
- Latest Status....|
- Setup Infrastructure successfully done.
- Default Application Deployed. URL is : demo.aws.app42paas.com
+ 1: Shared
+ Select Instance Type [Shared]:
+
+ 1: Amazon US West-2a
+ Select IaaS Provider [Amazon US West-2a]: 1
+
+ 1: Ruby 2.0
+ 2: Java 6.0
+ 3: Java 7.0
+ 4: Php 5.3
+ 5: Php 5.5
+ Select Runtime [Ruby 2.0]: 1
+
+ 1: Rails 4.0
+ Select Framework [Rails 4.0]:
+
+ 1: nginx 1.4.2
+ Select Web Server [nginx 1.4.2]:
+
+ 1: 512 MB
+ 2: 1024 MB
+ 3: 2048 MB
+ Memory Limit [512 MB]:
+
+ Setting up the infrastructure... OK
+
+ 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.
DESC
end
def apps
print <<-DESC
Usage:
app42 apps
- Deploy the application over runtime environment
+ List all the deployed applications with their meta details
Example:
$app42 apps
+------------------------+------------+-----------------+---------------+---------+------+
@@ -198,51 +212,28 @@
def deploy
print <<-DESC
Usage:
app42 deploy
- Deploy application
+ Deploy the application over your runtime environment
Options:
[--app APP] # Name of app, you want to update
Example:
$app42 deploy
Enter App Name: demo
Would you like to deploy from the current directory? [Yn]: n
Binary Deployment Path: /home/ubuntu/workspace/Deploycode/ruby
Deploying Application... OK
- Latest Status....|
+ Operation is in progress, Please wait....|
1 out of 1 Uploaded
Application deployed successfully.
DESC
end
- def update
- print <<-DESC
-Usage:
- app42 update
-
- Update existing application
-
-Options:
- [--app APP] # Name of app, you want to update
-
-Example:
- $app42 update
- Enter App Name: demo
- Would you like to deploy from the current directory? [Yn]: n
- Binary Deployment Path: /home/ubuntu/workspace/Deploycode/ruby
- Deploying Application... OK
- Latest Status....|
- 1 out of 1 Uploaded
- Application deployed successfully.
-
- DESC
- end
-
def start
print <<-DESC
Usage:
app42 start
@@ -288,11 +279,11 @@
$app42 start --app demo
Restarting app demo ...Done
DESC
end
- def deleteInfra
+ def deleteinfra
print <<-DESC
Usage:
app42 deleteInfra
Delete the Infrastructure environment
@@ -318,13 +309,12 @@
Example:
$app42 descale --app demo
Descale by instance(s): 1
Descaling Application demo by instance 1... OK
- Please wait... It may take few minutes to complete.
-
- Latest Status....|
+
+ Operation is in progress, Please wait...|
Descale completed successfully.
DESC
end
def scale
@@ -339,20 +329,17 @@
Example:
$app42 scale --app demo
Scale by instance(s): 1
Scaling Application demo by instance 1... OK
- Please wait... It may take few minutes to complete.
-
- Latest Status....|
+
+ Operation is in progress, Please wait...|
Scale completed successfully.
-
-
DESC
end
- def appInfo
+ def appinfo
print <<-DESC
Usage:
app42 appInfo
Show the meta information of the application
@@ -371,11 +358,11 @@
| demo.aws.app42paas.com | RUNNING | Amazon | demo | Ruby 2.0 | 1 | 512 MB |
+------------------------+------------+---------------+------+----------+----------------+--------+
DESC
end
- def appState
+ def appstate
print <<-DESC
Usage:
app42 appState
Show current state of the application
@@ -396,11 +383,11 @@
def logs
print <<-DESC
Usage:
app42 logs
- Returns the log URLs for the application
+ Returns the log URL(s) for the application
Example:
$app42 logs
Enter App Name: demo
Please visit below URL(s) to access app logs
@@ -413,47 +400,58 @@
+----------------------------------------------------------------------------+
DESC
end
- def createService
+ def createservice
print <<-DESC
Usage:
app42 createService
- Creates a new service
+ Creates a new service e.g. MySQL, MongoDB, CouchDB, PostgreSQL etc.
Example:
$app42 createService
- 1: Mysql
- 2: Mongodb
- Select Service: 1
- Enter Service Name: mysql-demo
- Enter Database Name: demo_dev
+ Enter Service Name: mysqldemo
+
+ Checking Service Name Availability... OK
+
+ 1: MySQL 5.5.1
+ 2: Mongodb 2.4
+ 3: Couchdb 10.1
+ 4: PostgreSQL 9.1
+ Select Service [MySQL 5.5.1]: 1
+
+ Enter Database Name: demodb
+
1: Shared
- Select Virtual Machine Type: 1
- 1: Amazon
- Select IaaS Provider: 1
- 1: 512MB
- 2: 1024MB
- 3: 2048MB
- Memory Limit: 1
+ Select Virtual Machine Type [Shared]:
+
+ 1: Amazon US West-2a
+ Select IaaS Provider [Amazon US West-2a]: 1
+
+ 1: 512 MB
+ 2: 1024 MB
+ 3: 2048 MB
+ Memory Limit [512 MB]: 1
+
Creating Service... OK
- Latest Status....|
- Service successfully created.
+
+ Operation is in progress, Please wait...|
+ Service created successfully.
- +---------------+---------------+---------+---------------+------------------+---------+--------------+----------------------------------+--------------+
- | === mysql-demo Details === |
- +---------------+---------------+---------+---------------+------------------+---------+--------------+----------------------------------+--------------+
- | Database Name | Iaas Provider | Vm Type | Vm Ip | User Name | Vm Port | Service Type | Password | Service Name |
- +---------------+---------------+---------+---------------+------------------+---------+--------------+----------------------------------+--------------+
- | demo_dev | Amazon | Shared | xx.yyy.zzz.aa | xxxxxxxxxxxxxxxx | 45074 | mysql55 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | mysql-demo |
- +---------------+---------------+---------+---------------+------------------+---------+--------------+----------------------------------+--------------+
+ +---------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
+ | === 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 |
+ +---------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
DESC
end
- def deleteService
+ def deleteservice
print <<-DESC
Usage:
app42 deleteService
Delete the provisioned service
@@ -461,17 +459,16 @@
Options:
[--service SERVICE] # Name of service
Example:
$app42 deleteService
- 1: mysql-demo
- 2: mysql-test
- Select Service: 1
- Latest Status....-
- 1 out of 1 deleted
- Service mysql-demo successfully deleted.
+ Enter Service Name: mysqldemo
+
+ Deleting Service... OK
+ Operation is in progress, Please wait...|
+ Service deleted successfully.
DESC
end
def services
print <<-DESC
@@ -480,26 +477,26 @@
List the all provisioned services with their meta details
Example:
$app42 services
- +---------------+---------+----------+--------------+
- | === Service List === |
- +---------------+---------+----------+--------------+
- | Iaas Provider | Vm Type | Name | Service Type |
- +---------------+---------+----------+--------------+
- | Amazon | Shared | demo_dev | mysql55 |
- +---------------+---------+----------+--------------+
+ +---------------+---------------+-----------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+
+ | === Service List === |
+ +---------------+---------------+-----------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+
+ | Database Name | Iaas Provider | Name | Vm Ip | State | User Name | Vm Port | Service Type | Password | Memory |
+ +---------------+---------------+-----------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+
+ | demodb | Amazon | mysqldemo | 10.0.0.52 | RUNNING | j7zz1jsx1bb4eiz1 | 49695 | MySQL 5.5.1 | teh77o4b6kpb22ab6oogfu9lwru9vrlj | 512 MB |
+ +---------------+---------------+-----------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+
DESC
end
- def serviceInfo
+ def serviceinfo
print <<-DESC
Usage:
app42 serviceInfo
- Show the meta information of the provisioned service
+ Show meta information of the provisioned service
Options:
[--service SERVICE] # Name of service
Example:
@@ -515,30 +512,54 @@
| demodb | Amazon | 10.0.0.52 | RUNNING | 5hk1tmdmkr16b94f | 52108 | MySQL 5.5.1 | 2otwxwpu8mskmmvwt7bx4r2fzw4ytls0 | 512 MB | mysqldemo |
+---------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
DESC
end
- def supportedServices
+ def supportedservices
print <<-DESC
Usage:
app42 supportedServices
List the supported services by App42
Example:
$app42 supportedServices
- +--------------+-----------------+
- | === App42 PaaS Services === |
- +--------------+-----------------+
- | Name | Service Version |
- +--------------+-----------------+
- | Mysql | 5.5.1 |
- | Mongodb | 2.4 |
- +--------------+-----------------+
+ +--------------+--------------+
+ | === App42 PaaS Services === |
+ +--------------+--------------+
+ | Name | Version |
+ +--------------+--------------+
+ | MySQL | 5.5.1 |
+ | Mongodb | 2.4 |
+ | Couchdb | 10.1 |
+ | PostgreSQL | 9.1 |
+ +--------------+--------------+
DESC
end
+ def activities
+ print <<-DESC
+Usage:
+ app42 activities
+
+ 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 |
+ +---------------+-----------+---------+---------+-----------------------+
+ DESC
+ end
+
def runtimes
print <<-DESC
Usage:
app42 runtimes
@@ -552,16 +573,17 @@
| Name | Version |
+--------------+--------------+
| Ruby | 2.0 |
| Java | 6.0 |
| Java | 7.0 |
+ | Php | 5.3 |
| Php | 5.5 |
+--------------+--------------+
DESC
end
- def iaasProviders
+ def iaasproviders
print <<-DESC
Usage:
app42 iaasProviders
List the supported IaaS providers by App42
@@ -603,97 +625,99 @@
Installing ri documentation for app42-0.5.0...
Installing RDoc documentation for app42-0.5.0...
DESC
end
- def resetServicePassword
+ def resetservicepassword
print <<-DESC
Usage:
resetServicePassword
Reset the password of provisioned service
Example:
$resetServicePassword
- Enter Service Name: mysql_demo
- Enter Old Password: 1pc8a09ise98nutrqzouj5ya98vtd08y
+ Enter Service Name: mysqldemo
+
+ Enter Old Password: teh77o4b6kpb22ab6oogfu9lwru9vrlj
+
Resetting Password... OK
- Please wait it may takes few minutes.
+
+ Operation is in progress, Please wait.../
+ Service Password has been reset successfully.
- Latest Status....
- Reset Password successful.Your new password is: quzg6bogsu0ak3rwyr0egs8a1ttgc9tt
+ Your new password is: z2qo1vxeadak6jsmt9upobytwptc5eo0
DESC
end
- def bindIP
+ def bindip
print <<-DESC
Usage:
app42 bindIP
- Bind IP to a service
+ Bind IP to provisioned service
Example:
$app42 bindIP
- Enter Service Name: mysql_demo
+ Enter Service Name: mysqldemo
+
Please Provide Source IP
- (0.0.0.0, for public access): 0.0.0.0/0
- Please provide the time duration you want to access service(0 for unlimited access[in hours]): 2
+ (For public access, use '0.0.0.0'): <IP address>
+
Binding IP to service... OK
- Please wait it may takes few minutes.
+
+ Operation is in progress, Please wait...-
+ Service bind with IP successfully.
- Latest Status....|
- Bind service successful.
-
- +------------------+--------------+---------------+---------+----------------+-----------+------------------+---------+--------------+----------------------------------+--------+--------------+
- | === mysql_demo Details === |
- +------------------+--------------+---------------+---------+----------------+-----------+------------------+---------+--------------+----------------------------------+--------+--------------+
- | Database Name | Os | Iaas Provider | Vm Type | Vm Ip | Source Ip | User Name | Vm Port | Service Type | Password | Memory | Service Name |
- +------------------+--------------+---------------+---------+----------------+-----------+------------------+---------+--------------+----------------------------------+--------+--------------+
- | demo_development | Ubuntu 12.10 | Amazon | Shared | 54.218.127.245 | 0.0.0.0/0 | 4gxu2btjrh7p1ku5 | 20830 | MySQL 5.5.1 | c8f6ynn0p065wzh7i2802pi5nfpfyr58 | 512 MB | mysql_demo |
- +------------------+--------------+---------------+---------+----------------+-----------+------------------+---------+--------------+----------------------------------+--------+--------------+
+ +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
+ | === mysqldemo Details === |
+ +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
+ | Database Name | Iaas Provider | Vm Ip | Source Ip | State | User Name | Vm Port | Service Type | Password | Memory | Service Name |
+ +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
+ | demodb | Amazon | 54.218.127.245 | 122.162.124.222 | RUNNING | j7zz1jsx1bb4eiz1 | 49695 | MySQL 5.5.1 | z2qo1vxeadak6jsmt9upobytwptc5eo0 | 512 MB | mysqldemo |
+ +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
DESC
end
- def unbindIP
+ def unbindip
print <<-DESC
Usage:
app42 unbindIP
- Unbind service from the application
+ Unbind IP from provisioned service
Example:
$app42 unbindIP
- Enter Service Name: mysql_demo
- Please Provide Source IP
- (0.0.0.0, for public access): 0.0.0.0/0
- Unbinding IP to service... OK
- Please wait it may takes few minutes.
+ Enter Service Name: mysqldemo
- Latest Status....-
- Unbind service successful.
+ Please Provide Source IP: <IP address>
+
+ Unbinding IP to service... OK
+
+ Operation is in progress, Please wait...|
+ Service unbind with IP successfully.
DESC
end
- def bindInfo
+ def bindinfo
print <<-DESC
Usage:
app42 bindInfo
- Show IP bind information
+ Show IP bind information related to provisioned service
Example:
$app42 bindInfo
- 1: mysql_demo
-Select Service: 1
-+------------------+--------------+---------------+---------+----------------+-----------+------------------+---------+--------------+----------------------------------+--------+--------------+
-| === mysql_demo Details === |
-+------------------+--------------+---------------+---------+----------------+-----------+------------------+---------+--------------+----------------------------------+--------+--------------+
-| Database Name | Os | Iaas Provider | Vm Type | Vm Ip | Source Ip | User Name | Vm Port | Service Type | Password | Memory | Service Name |
-+------------------+--------------+---------------+---------+----------------+-----------+------------------+---------+--------------+----------------------------------+--------+--------------+
-| demo_development | Ubuntu 12.10 | Amazon | Shared | 54.218.127.245 | 0.0.0.0/0 | 4gxu2btjrh7p1ku5 | 20830 | MySQL 5.5.1 | c8f6ynn0p065wzh7i2802pi5nfpfyr58 | 512 MB | mysql_demo |
-+------------------+--------------+---------------+---------+----------------+-----------+------------------+---------+--------------+----------------------------------+--------+--------------+
+ 1: mysqldemo
+ Select Service [mysqldemo]:
-
+ +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
+ | === mysqldemo Details === |
+ +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
+ | Database Name | Iaas Provider | Vm Ip | Source Ip | State | User Name | Vm Port | Service Type | Password | Memory | Service Name |
+ +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
+ | demodb | Amazon | 54.218.127.245 | 122.162.124.222 | RUNNING | j7zz1jsx1bb4eiz1 | 49695 | MySQL 5.5.1 | z2qo1vxeadak6jsmt9upobytwptc5eo0 | 512 MB | mysqldemo |
+ +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
DESC
end
def version
print <<-DESC