app42 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/RELEASE.md CHANGED
@@ -31,4 +31,8 @@ Client library and command-line tool to deploy and manage apps on App42PaaS.
31
31
  ### 0.6.2 (16-02-2014)
32
32
 
33
33
  - GPaaS support
34
- - Enhance upgrade and downgrade call of BPaaS and GPaaS setup
34
+ - Enhance upgrade and downgrade call of BPaaS and GPaaS setup
35
+
36
+ ### 0.6.3 (09-04-2014)
37
+
38
+ - Restart command for BPaaS, GPaaS and WordPress setup
@@ -67,6 +67,7 @@ module App42
67
67
  deleteBPaaS # Delete the BPaaS setup
68
68
  startBPaaS # Start the BPaaS setup
69
69
  stopBPaaS # Stop the BPaaS setup
70
+ restartBPaaS # Restart the BPaaS setup
70
71
  upgradeBPaas # Upgrade BPaaS by choosing required configuration
71
72
  downgradeBPaas # Downgrade BPaaS by choosing required configuration
72
73
  bPaaSInfo # Show BPaaS setup information
@@ -77,6 +78,7 @@ module App42
77
78
  deleteWordPress # Delete the WordPress setup
78
79
  startWordPress # Start the WordPress setup
79
80
  stopWordPress # Stop the WordPress setup
81
+ restartWordPress # Restart the WordPress setup
80
82
  upgradeWordPress # Upgrade WordPress by choosing required configuration
81
83
  downgradeWordPress # Downgrade WordPress by choosing required configuration
82
84
  wordPressInfo # Show WordPress setup information
@@ -87,6 +89,7 @@ module App42
87
89
  deleteGPaaS # Delete the GPaaS setup
88
90
  startGPaaS # Start the GPaaS setup
89
91
  stopGPaaS # Stop the GPaaS setup
92
+ restartGPaaS # Restart the GPaaS setup
90
93
  upgradeGPaas # Upgrade GPaaS by choosing required configuration
91
94
  downgradeGPaas # Downgrade GPaaS by choosing required configuration
92
95
  gPaaSInfo # Show GPaaS setup information
@@ -190,21 +193,22 @@ Usage:
190
193
 
191
194
  Example:
192
195
  $app42 setupInfra
193
- Application Name: demo
196
+ Enter App Name: demo
194
197
 
195
198
  Checking App Name Availability... OK
196
199
 
197
200
  1: Shared
198
201
  Select Instance Type [Shared]:
199
202
 
200
- 1: Amazon us-west-2
201
- Select IaaS Provider [Amazon us-west-2]:
203
+ 1: Amazon (Oregon)
204
+ Select IaaS Provider [Amazon (Oregon)]:
202
205
 
203
206
  1: Ruby 2.0.0
204
207
  2: Java 6
205
208
  3: Java 7
206
209
  4: PHP 5.3
207
210
  5: PHP 5.5
211
+ 6: Node 0.10.22
208
212
  Select Runtime [Ruby 2.0.0]:
209
213
 
210
214
  1: Ruby on Rack
@@ -212,43 +216,23 @@ Example:
212
216
  3: Sinatra 1.4
213
217
  Select Framework [Ruby on Rack ]:
214
218
 
215
- 1: Nginx 1.4.1
216
- Select Web Server [Nginx 1.4.1]:
219
+ 1: Passenger 4.0
220
+ 2: Thin 1.6
221
+ 3: Unicorn 4.7
222
+ Select Web Server [Passenger 4.0]:
223
+
224
+ Specify Kontena Power: 1
217
225
 
218
- Specify Kontena Power: 5
219
-
220
226
  Setting up the infrastructure... OK
221
-
222
- Operation is in progress, Please wait.../
223
-
224
- Setup Infra completed successfully.
227
+
228
+ Operation is in progress, Please wait...|
229
+ Setup Infra has been completed successfully.
225
230
 
226
231
  Default application has been deployed. You can visit 'https://demo.iab.app42paas.com' to see the default application.
227
232
  DESC
228
233
 
229
234
  end
230
235
 
231
- def apps
232
- print <<-DESC
233
- Usage:
234
- app42 apps
235
-
236
- List all the deployed applications with their meta details
237
-
238
- Example:
239
- $app42 apps
240
-
241
- +--------------------------------+------------+-----------------+------+------------+----------------+---------------+--------+
242
- | === My Apps === |
243
- +--------------------------------+------------+-----------------+------+------------+----------------+---------------+--------+
244
- | App Url | App Status | Iaas Provider | Name | Runtime | Instance Count | Framework | Memory |
245
- +--------------------------------+------------+-----------------+------+------------+----------------+---------------+--------+
246
- | https://demo.iab.app42paas.com | RUNNING | Amazon (Oregon) | demo | Ruby 2.0.0 | 1 | Ruby on Rack | 256 MB |
247
- +--------------------------------+------------+-----------------+------+------------+----------------+---------------+--------+
248
- DESC
249
-
250
- end
251
-
252
236
  def deploy
253
237
  print <<-DESC
254
238
  Usage:
@@ -270,7 +254,7 @@ Example:
270
254
  Deploying Application... OK
271
255
 
272
256
  Operation is in progress, Please wait...|
273
- App deployed successfully.
257
+ App has been deployed successfully.
274
258
  DESC
275
259
 
276
260
  end
@@ -295,9 +279,60 @@ Example:
295
279
  Updating Application... OK
296
280
 
297
281
  Operation is in progress, Please wait...-
298
- App deployed successfully.
282
+ App has been deployed successfully.
283
+ DESC
284
+ end
285
+
286
+ def scale
287
+ print <<-DESC
288
+ Usage:
289
+ app42 scale
290
+
291
+ Scale application either by number of instance(s) OR kontena(s)
292
+
293
+ Options:
294
+ [--app APP] # Name of app, you want to scale
295
+
296
+ Example:
297
+ $app42 scale
298
+ Enter App Name: demo
299
+
300
+ 1: Horizontal
301
+ 2: Vertical
302
+ Choose Scale Type [Horizontal]:
303
+
304
+ Horizontal scale by instance(s) [1]:
305
+ Scaling Application demo by instance 1... OK
306
+
307
+ Operation is in progress, Please wait...-
308
+ Scale has been completed successfully.
299
309
  DESC
310
+ end
311
+
312
+ def descale
313
+ print <<-DESC
314
+ Usage:
315
+ app42 descale
316
+
317
+ Descale application either by number of instance(s) OR kontena(s)
318
+
319
+ Options:
320
+ [--app APP] # Name of app, you want to descale
321
+
322
+ Example:
323
+ $app42 descale
324
+ Enter App Name: demo
325
+
326
+ 1: Horizontal
327
+ 2: Vertical
328
+ Choose Scale Type [Horizontal]:
329
+
330
+ Horizontal descale by instance(s) [1]: 1
331
+ Descaling Application demo by instance 1... OK
300
332
 
333
+ Operation is in progress, Please wait...|
334
+ Descale has been completed successfully.
335
+ DESC
301
336
  end
302
337
 
303
338
  def start
@@ -319,7 +354,7 @@ Example:
319
354
  -
320
355
  2 out of 3 started
321
356
  |
322
- App started successfully.
357
+ App has been started successfully.
323
358
  DESC
324
359
 
325
360
  end
@@ -343,7 +378,7 @@ Example:
343
378
  -
344
379
  2 out of 3 stopped
345
380
  -
346
- App stopped successfully.
381
+ App has been stopped successfully.
347
382
  DESC
348
383
  end
349
384
 
@@ -366,7 +401,7 @@ Example:
366
401
  -
367
402
  2 out of 3 restarted
368
403
  |
369
- App restarted successfully.
404
+ App has been restarted successfully.
370
405
  DESC
371
406
  end
372
407
 
@@ -389,87 +424,29 @@ Example:
389
424
  -
390
425
  2 out of 3 deleted
391
426
  |
392
- App deleted successfully.
393
- DESC
394
- end
395
-
396
- def descale
397
- print <<-DESC
398
- Usage:
399
- app42 descale
400
-
401
- Descale application either by number of instance(s) OR kontena(s)
402
-
403
- Options:
404
- [--app APP] # Name of app, you want to descale
405
-
406
- Example:
407
- $app42 descale
408
- Enter App Name: demo
409
-
410
- 1: Horizontal
411
- 2: Vertical
412
- Choose Scale Type [Horizontal]:
413
-
414
- Horizontal descale by instance(s) [1]: 1
415
- Descaling Application demo by instance 1... OK
416
-
417
- Operation is in progress, Please wait...|
418
- Descale completed successfully.
419
- DESC
420
- end
421
-
422
- def scale
423
- print <<-DESC
424
- Usage:
425
- app42 scale
426
-
427
- Scale application either by number of instance(s) OR kontena(s)
428
-
429
- Options:
430
- [--app APP] # Name of app, you want to scale
431
-
432
- Example:
433
- $app42 scale
434
- Enter App Name: demo
435
-
436
- 1: Horizontal
437
- 2: Vertical
438
- Choose Scale Type [Horizontal]: 2
439
-
440
- Vertical scale by kontena power(s) [1]:
441
- Scaling Application demo by kontena(s) 1... OK
442
-
443
- Operation is in progress, Please wait...|
444
-
445
- Scale completed successfully.
427
+ App has been deleted successfully.
446
428
  DESC
447
429
  end
448
430
 
449
- def uploadbackup
431
+ def apps
450
432
  print <<-DESC
451
433
  Usage:
452
- app42 uploadBackup
453
-
454
- Upload file data into a service
434
+ app42 apps
455
435
 
456
- Options:
457
- [--service SERVICE] # Name of service, you want to scale
436
+ List all the deployed applications with their meta details
458
437
 
459
438
  Example:
460
- $app42 uploadBackup
461
- Enter Service Name: db
462
-
463
- Enter Backup File Path: /home/ubuntu/Downloads/demo_production-27Nov2013.sql
464
-
465
- Do you also want to restore uploaded backup? [Yn]: n
466
- Please be patient... This process may take a while to complete.
467
-
468
- Uploading Service Backup... OK
439
+ $app42 apps
440
+
441
+ +--------------------------------+------------+-----------------+--------------------------+------+------------+----------------+---------------+--------+
442
+ | === My Apps === |
443
+ +--------------------------------+------------+-----------------+--------------------------+------+------------+----------------+---------------+--------+
444
+ | App Url | App Status | Iaas Provider | Email | Name | Runtime | Instance Count | Framework | Memory |
445
+ +--------------------------------+------------+-----------------+--------------------------+------+------------+----------------+---------------+--------+
446
+ | https://demo.iab.app42paas.com | RUNNING | Amazon (Oregon) | pravinmishra88@gmail.com | demo | Ruby 2.0.0 | 1 | Ruby on Rack | 256 MB |
447
+ +--------------------------------+------------+-----------------+--------------------------+------+------------+----------------+---------------+--------+
448
+ DESC
469
449
 
470
- Operation is in progress, Please wait...
471
- Backup has been successfully restored.
472
- DESC
473
450
  end
474
451
 
475
452
  def appinfo
@@ -537,6 +514,62 @@ Please visit below URL(s) to access app logs
537
514
  DESC
538
515
  end
539
516
 
517
+ def addcustomurl
518
+ print <<-DESC
519
+ Usage:
520
+ app42 addCustomURL
521
+
522
+ Add a custom URL to an app
523
+
524
+ Example:
525
+ $app42 addCustomURL
526
+ Enter App Name: demo
527
+
528
+ Enter Custom URL: http://test.naveengoswami.com
529
+
530
+ Adding Custom URL To Application demo... OK
531
+ Custom URL added successfully.
532
+ DESC
533
+ end
534
+
535
+ def removecustomurl
536
+ print <<-DESC
537
+ Usage:
538
+ app42 removeCustomURL
539
+
540
+ Remove a custom URL from an app
541
+
542
+ Example:
543
+ $ app42 removeCustomURL
544
+ Enter App Name: demo
545
+
546
+ Enter Custom URL: http://test.naveengoswami.com
547
+
548
+ Removing Custom URL... OK
549
+ Custom URL deleted successfully.
550
+ DESC
551
+ end
552
+
553
+ def customurlinfo
554
+ print <<-DESC
555
+ Usage:
556
+ app42 customURLInfo
557
+
558
+ List all custom URLs of an app
559
+
560
+ Example:
561
+ $app42 customURLInfo
562
+ Enter App Name: demo
563
+
564
+ +----------+-----------------------+-------------------------------+
565
+ | === testPhp Custome URLs Details === |
566
+ +----------+-----------------------+-------------------------------+
567
+ | App Name | Created On | Url |
568
+ +-------------+-----------------------+----------------------------+
569
+ | demo | 2014-01-27 06:35:55.0 | http://test.naveengoswami.com |
570
+ +----------+-----------------------+-------------------------------+
571
+ DESC
572
+ end
540
573
 
541
574
  def createservice
542
575
  print <<-DESC
@@ -547,13 +580,23 @@ Usage:
547
580
 
548
581
  Example:
549
582
  $app42 createService
583
+ Enter Service Name: mysqldemo
584
+
585
+ Deleting Service... OK
586
+
587
+ Operation is in progress, Please wait...
588
+ Service has been deleted successfully.
589
+
590
+ ubuntu@ubuntu-Lenovo-G580:~/workspace/App42PasS/PaaS/app42$ app42 createService
550
591
  Enter Service Name: mysqldb
592
+
551
593
  Checking Service Name Availability... OK
552
594
 
553
595
  1: MySQL 5.5.31
554
596
  2: Mongodb 2.4.4
555
597
  3: Couchdb 1.0.1
556
598
  4: PostgreSQL 9.1.9
599
+ 5: Redis 2.8.3
557
600
  Select Service [MySQL 5.5.31]:
558
601
 
559
602
  Enter Database Name: demo_db
@@ -568,16 +611,16 @@ Example:
568
611
 
569
612
  Creating Service... OK
570
613
 
571
- Operation is in progress, Please wait...|
572
- Service created successfully.
573
-
574
- +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
575
- | === mysqldb Details === |
576
- +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
577
- | Database Name | Iaas Provider | Token | Vm Ip | State | User Name | Vm Port | Service Type | Password | Memory | Service Name |
578
- +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
579
- | demo_db | Amazon (Oregon) | ytxsq0ov7lf5s4foh2igw01bwy32ydgp | 172.16.2.167 | RUNNING | aoafi8vgczxoftw4 | 12411 | MySQL 5.5.31 | a2rzmvrdr7hpa08a6k1a1r24ixdutyl9 | 256 MB | mysqldb |
580
- +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
614
+ Operation is in progress, Please wait...-
615
+ Service has been created successfully.
616
+
617
+ +---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
618
+ | === mysqldb Details === |
619
+ +---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
620
+ | Database Name | Iaas Provider | Token | Vm Ip | State | User Name | Source Ip | Vm Port | Service Type | Destination Ip | Password | Memory | Service Name |
621
+ +---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
622
+ | demo_db | Amazon (Oregon) | 0pcmpc64srphrwijmy616uipdjv7t0oi | 172.16.2.167 | RUNNING | admk0ltirejxgh3o | | 27875 | MySQL 5.5.31 | | a66tyn077yhlx2gue0t2nsjplls56g7m | 256 MB | mysqldb |
623
+ +---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
581
624
  DESC
582
625
  end
583
626
 
@@ -593,12 +636,13 @@ Options:
593
636
 
594
637
  Example:
595
638
  $app42 deleteService
596
- Enter Service Name: mysqldemo
639
+ Enter Service Name: mysqldb
597
640
 
598
641
  Deleting Service... OK
599
-
642
+
600
643
  Operation is in progress, Please wait...|
601
- Service deleted successfully.
644
+ Service has been deleted successfully.
645
+
602
646
  DESC
603
647
  end
604
648
 
@@ -614,11 +658,34 @@ Options:
614
658
 
615
659
  Example:
616
660
  $app42 startService
617
- Enter Service Name: mysql
618
- Starting Service mysql... OK
661
+ Enter Service Name: mysqldb
619
662
 
620
- Operation is in progress, Please wait...|
621
- Service started successfully.
663
+ Starting Service mysqldb... OK
664
+
665
+ Operation is in progress, Please wait...-
666
+ Service has been started successfully.
667
+ DESC
668
+
669
+ end
670
+
671
+ def restartservice
672
+ print <<-DESC
673
+ Usage:
674
+ app42 restartService
675
+
676
+ Restart the service
677
+
678
+ Options:
679
+ [--app Service] # Name of service, you want to start
680
+
681
+ Example:
682
+ $app42 restartService
683
+ Enter Service Name: mysqldb
684
+
685
+ Restarting Service mysqldb... OK
686
+
687
+ Operation is in progress, Please wait...
688
+ Service has been restarted successfully.
622
689
  DESC
623
690
 
624
691
  end
@@ -635,33 +702,56 @@ Options:
635
702
 
636
703
  Example:
637
704
  $app42 stopService
638
- Enter Service Name: mysql
639
- Stopping Service mysql... OK
705
+ Enter Service Name: mysqldb
640
706
 
641
- Operation is in progress, Please wait...|
642
- Service stopped successfully.
707
+ Stopping Service mysqldb... OK
708
+
709
+ Operation is in progress, Please wait...
710
+ Service has been stopped successfully.
643
711
  DESC
644
712
 
645
713
  end
646
714
 
647
- def scaleservice
648
- print <<-DESC
649
- Usage:
650
- app42 scaleService
651
- Vertically scale service by number of kontena(s)
652
-
653
- Options:
654
- [--service SERVICE] # Name of service, you want to scale
655
-
656
- Example:
715
+ def resetservicepassword
716
+ print <<-DESC
717
+ Usage:
718
+ resetServicePassword
719
+
720
+ Reset the password of provisioned service
721
+
722
+ Example:
723
+ $resetServicePassword
724
+ Enter Service Name: mysqldemo
725
+
726
+ Enter Old Password: teh77o4b6kpb22ab6oogfu9lwru9vrlj
727
+
728
+ Resetting Password... OK
729
+
730
+ Operation is in progress, Please wait.../
731
+ Service Password has been reset successfully.
732
+
733
+ Your new password is: z2qo1vxeadak6jsmt9upobytwptc5eo0
734
+ DESC
735
+ end
736
+
737
+ def scaleservice
738
+ print <<-DESC
739
+ Usage:
740
+ app42 scaleService
741
+ Vertically scale service by number of kontena(s)
742
+
743
+ Options:
744
+ [--service SERVICE] # Name of service, you want to scale
745
+
746
+ Example:
657
747
  $app42 scaleService
658
748
  Enter Service Name: mysqldb
659
-
749
+
660
750
  Vertical scale by kontena power(s) [1]: 1
661
751
  Scaling Service 'mysqldb' by kontena 1... OK
662
752
 
663
753
  Operation is in progress, Please wait...|
664
- Service scale completed successfully.
754
+ Vertical Scale has been completed successfully.
665
755
  DESC
666
756
 
667
757
  end
@@ -678,223 +768,43 @@ Example:
678
768
  Example:
679
769
  $app42 descaleService
680
770
  Enter Service Name: mysqldb
681
-
771
+
682
772
  Vertical descale by kontena power(s) [1]: 1
683
773
  Descaling Service 'mysqldb' by kontena 1... OK
684
774
 
685
- Operation is in progress, Please wait...|
686
- Service descale completed successfully.
775
+ Operation is in progress, Please wait...-
776
+ Vertical Descale has been completed successfully.
687
777
  DESC
688
778
 
689
779
  end
690
780
 
691
- def restartservice
692
- print <<-DESC
693
- Usage:
694
- app42 restartService
695
-
696
- Restart the service
697
-
698
- Options:
699
- [--app Service] # Name of service, you want to start
700
-
701
- Example:
702
- $app42 restartService
703
- Enter Service Name: mysql
704
- Restarting Service mysql... OK
705
-
706
- Operation is in progress, Please wait...|
707
- Service restarted successfully.
708
- DESC
709
-
710
- end
711
-
712
- def services
713
- print <<-DESC
714
- Usage:
715
- app42 services
716
-
717
- List the all provisioned services with their meta details
718
-
719
- Example:
720
- $app42 services
721
- +---------------+---------------+-----------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+
722
- | === Service List === |
723
- +---------------+---------------+-----------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+
724
- | Database Name | Iaas Provider | Name | Vm Ip | State | User Name | Vm Port | Service Type | Password | Memory |
725
- +---------------+---------------+-----------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+
726
- | demodb | Amazon | mysqldemo | 10.0.0.52 | RUNNING | j7zz1jsx1bb4eiz1 | 49695 | MySQL 5.5.1 | teh77o4b6kpb22ab6oogfu9lwru9vrlj | 512 MB |
727
- +---------------+---------------+-----------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+
728
- DESC
729
- end
730
-
731
- def serviceinfo
781
+ def uploadbackup
732
782
  print <<-DESC
733
783
  Usage:
734
- app42 serviceInfo
784
+ app42 uploadBackup
735
785
 
736
- Show meta information of the provisioned service
786
+ Upload file data into a service
737
787
 
738
788
  Options:
739
- [--service SERVICE] # Name of service
740
-
741
- Example:
742
- 1: mysqldb
743
- Select Service [mysqldb]:
744
-
745
- +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
746
- | === mysqldb Details === |
747
- +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
748
- | Database Name | Iaas Provider | Token | Vm Ip | State | User Name | Vm Port | Service Type | Password | Memory | Service Name |
749
- +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
750
- | demo_db | Amazon (Oregon) | ytxsq0ov7lf5s4foh2igw01bwy32ydgp | 172.16.2.167 | RUNNING | aoafi8vgczxoftw4 | 12411 | MySQL 5.5.31 | a2rzmvrdr7hpa08a6k1a1r24ixdutyl9 | 256 MB | mysqldb |
751
- +---------------+-----------------+----------------------------------+--------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
752
- DESC
753
- end
754
-
755
- def supportedservices
756
- print <<-DESC
757
- Usage:
758
- app42 supportedServices
759
-
760
- List the supported services by App42
761
-
762
- Example:
763
- $app42 supportedServices
764
- +--------------+--------------+
765
- | === App42 PaaS Services === |
766
- +--------------+--------------+
767
- | Name | Version |
768
- +--------------+--------------+
769
- | MySQL | 5.5.1 |
770
- | Mongodb | 2.4 |
771
- | Couchdb | 10.1 |
772
- | PostgreSQL | 9.1 |
773
- +--------------+--------------+
774
- DESC
775
- end
776
-
777
- def activities
778
- print <<-DESC
779
- Usage:
780
- app42 activities
781
-
782
- List all activities with their status
789
+ [--service SERVICE] # Name of service, you want to scale
783
790
 
784
791
  Example:
785
- $app42 activities
786
- +------------+-----------+------+------+-----------------------+
787
- | === User Activities === |
788
- +------------+-----------+------+------+-----------------------+
789
- | Operation | Status | Name | Type | Date |
790
- +------------+-----------+------+------+-----------------------+
791
- | setupInfra | COMPLETED | demo | APP | 2013-10-25 06:18:42.0 |
792
- | scale | COMPLETED | demo | APP | 2013-10-25 06:40:39.0 |
793
- | scale | COMPLETED | demo | APP | 2013-10-25 06:41:25.0 |
794
- | descale | COMPLETED | demo | APP | 2013-10-25 06:42:12.0 |
795
- | descale | COMPLETED | demo | APP | 2013-10-25 06:42:13.0 |
796
- | restart | COMPLETED | demo | APP | 2013-10-25 06:44:31.0 |
797
- | stop | COMPLETED | demo | APP | 2013-10-25 06:45:23.0 |
798
- | start | COMPLETED | demo | APP | 2013-10-25 06:45:49.0 |
799
- | scale | COMPLETED | demo | APP | 2013-10-25 06:52:56.0 |
800
- | scale | COMPLETED | demo | APP | 2013-10-25 06:53:24.0 |
801
- | descale | COMPLETED | demo | APP | 2013-10-25 06:58:10.0 |
802
- | descale | COMPLETED | demo | APP | 2013-10-25 06:58:10.0 |
803
- +------------+-----------+------+------+-----------------------+
804
- DESC
805
- end
806
-
807
- def runtimes
808
- print <<-DESC
809
- Usage:
810
- app42 runtimes
792
+ $app42 uploadBackup
793
+ Enter Service Name: mysqldb
811
794
 
812
- List the supported runtimes
795
+ Enter Backup File Path: /home/ubuntu/Downloads/demo_production-27Nov2013.sql
813
796
 
814
- Example:
815
- $app42 runtimes
816
- +--------------+--------------+
817
- | === Available Runtimes === |
818
- +--------------+--------------+
819
- | Name | Version |
820
- +--------------+--------------+
821
- | Ruby | 2.0 |
822
- | Java | 6.0 |
823
- | Java | 7.0 |
824
- | Php | 5.3 |
825
- | Php | 5.5 |
826
- +--------------+--------------+
827
- DESC
828
- end
829
-
830
- def iaasproviders
831
- print <<-DESC
832
- Usage:
833
- app42 iaasProviders
797
+ Do you also want to restore uploaded backup? [Yn]: n
798
+ Please be patient... This process may take a while to complete.
834
799
 
835
- List the supported IaaS providers by App42
800
+ Uploading Service Backup... OK
836
801
 
837
- Example:
838
- $app42 iaasProviders
839
- +-----------------+-----------------+
840
- | === Available IaaS Providers === |
841
- +-----------------+-----------------+
842
- | Name | Zone |
843
- +-----------------+-----------------+
844
- | Amazon | (Oregon) |
845
- +-----------------+-----------------+
802
+ Operation is in progress, Please wait...
803
+ Backup has been successfully restored.
846
804
  DESC
847
805
  end
848
806
 
849
-
850
- def app42_update
851
- print <<-DESC
852
- Usage:
853
- app42 app42-update
854
-
855
- Update App42PaaS client(app42)
856
- -> Download app42 client, In a terminal, go to the folder where you have downloaded the client and run client update command.
857
-
858
- Example:
859
- $app42 app42-update
860
- Uninstalling current app42 client
861
- Remove executables:
862
- app42
863
-
864
- in addition to the gem? [Yn] y
865
- Removing app42
866
- Successfully uninstalled app42-0.5.0
867
- Installing latest app42 client
868
- Successfully installed app42-0.5.0
869
- 1 gem installed
870
- Installing ri documentation for app42-0.5.0...
871
- Installing RDoc documentation for app42-0.5.0...
872
- DESC
873
- end
874
-
875
- def resetservicepassword
876
- print <<-DESC
877
- Usage:
878
- resetServicePassword
879
-
880
- Reset the password of provisioned service
881
-
882
- Example:
883
- $resetServicePassword
884
- Enter Service Name: mysqldemo
885
-
886
- Enter Old Password: teh77o4b6kpb22ab6oogfu9lwru9vrlj
887
-
888
- Resetting Password... OK
889
-
890
- Operation is in progress, Please wait.../
891
- Service Password has been reset successfully.
892
-
893
- Your new password is: z2qo1vxeadak6jsmt9upobytwptc5eo0
894
- DESC
895
- end
896
-
897
- def bindip
807
+ def bindip
898
808
  print <<-DESC
899
809
  Usage:
900
810
  app42 bindIP
@@ -903,23 +813,23 @@ Usage:
903
813
 
904
814
  Example:
905
815
  $app42 bindIP
906
- Enter Service Name: mysqldemo
816
+ Enter Service Name: mysqldb
907
817
 
908
818
  Please Provide Source IP
909
- (For public access, use '0.0.0.0'): <IP address>
819
+ (For public access, use '0.0.0.0'): 0.0.0.0
910
820
 
911
821
  Binding IP to service... OK
912
-
913
- Operation is in progress, Please wait...-
914
- Service bind with IP successfully.
915
-
916
- +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
917
- | === mysqldemo Details === |
918
- +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
919
- | Database Name | Iaas Provider | Vm Ip | Source Ip | State | User Name | Vm Port | Service Type | Password | Memory | Service Name |
920
- +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
921
- | demodb | Amazon | 54.218.127.245 | 122.162.124.222 | RUNNING | j7zz1jsx1bb4eiz1 | 49695 | MySQL 5.5.1 | z2qo1vxeadak6jsmt9upobytwptc5eo0 | 512 MB | mysqldemo |
922
- +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
822
+
823
+ Operation is in progress, Please wait...
824
+ Service binding has been completed successfully.
825
+
826
+ +---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
827
+ | === mysqldb Details === |
828
+ +---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
829
+ | Database Name | Iaas Provider | Token | Vm Ip | Source Ip | State | User Name | Vm Port | Service Type | Password | Memory | Service Name |
830
+ +---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
831
+ | demo_db | Amazon (Oregon) | 0pcmpc64srphrwijmy616uipdjv7t0oi | 54.213.93.154 | 0.0.0.0 | RUNNING | admk0ltirejxgh3o | 15847 | MySQL 5.5.31 | vagyqxta6e0a8q5jxunlr43v6cwohmdj | 256 MB | mysqldb |
832
+ +---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
923
833
  DESC
924
834
  end
925
835
 
@@ -932,14 +842,14 @@ Usage:
932
842
 
933
843
  Example:
934
844
  $app42 unbindIP
935
- Enter Service Name: mysqldemo
845
+ Enter Service Name: mysqldb
936
846
 
937
- Please Provide Source IP: <IP address>
847
+ Please Provide Source IP: 0.0.0.0
938
848
 
939
849
  Unbinding IP to service... OK
940
-
941
- Operation is in progress, Please wait...|
942
- Service unbind with IP successfully.
850
+
851
+ Operation is in progress, Please wait...
852
+ Service unbinding has been completed successfully.
943
853
  DESC
944
854
  end
945
855
 
@@ -952,19 +862,64 @@ Usage:
952
862
 
953
863
  Example:
954
864
  $app42 bindInfo
955
- 1: mysqldemo
956
- Select Service [mysqldemo]:
957
-
958
- +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
959
- | === mysqldemo Details === |
960
- +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
961
- | Database Name | Iaas Provider | Vm Ip | Source Ip | State | User Name | Vm Port | Service Type | Password | Memory | Service Name |
962
- +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
963
- | demodb | Amazon | 54.218.127.245 | 122.162.124.222 | RUNNING | j7zz1jsx1bb4eiz1 | 49695 | MySQL 5.5.1 | z2qo1vxeadak6jsmt9upobytwptc5eo0 | 512 MB | mysqldemo |
964
- +---------------+---------------+----------------+-----------------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
865
+ 1: mysqldb
866
+ 2: redisdb
867
+ Select Service [mysqldb]:
868
+
869
+ +---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
870
+ | === mysqldb Details === |
871
+ +---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
872
+ | Database Name | Iaas Provider | Token | Vm Ip | Source Ip | State | User Name | Vm Port | Service Type | Password | Memory | Service Name |
873
+ +---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
874
+ | demo_db | Amazon (Oregon) | 0pcmpc64srphrwijmy616uipdjv7t0oi | 54.213.93.154 | 0.0.0.0 | RUNNING | admk0ltirejxgh3o | 15847 | MySQL 5.5.31 | vagyqxta6e0a8q5jxunlr43v6cwohmdj | 256 MB | mysqldb |
875
+ +---------------+-----------------+----------------------------------+---------------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+--------------+
965
876
  DESC
966
877
  end
967
878
 
879
+ def services
880
+ print <<-DESC
881
+ Usage:
882
+ app42 services
883
+
884
+ List the all provisioned services with their meta details
885
+
886
+ Example:
887
+ $app42 services
888
+ +---------------+---------------+-----------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+
889
+ | === Service List === |
890
+ +---------------+---------------+-----------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+
891
+ | Database Name | Iaas Provider | Name | Vm Ip | State | User Name | Vm Port | Service Type | Password | Memory |
892
+ +---------------+---------------+-----------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+
893
+ | demodb | Amazon | mysqldemo | 10.0.0.52 | RUNNING | j7zz1jsx1bb4eiz1 | 49695 | MySQL 5.5.1 | teh77o4b6kpb22ab6oogfu9lwru9vrlj | 512 MB |
894
+ +---------------+---------------+-----------+-----------+---------+------------------+---------+--------------+----------------------------------+--------+
895
+ DESC
896
+ end
897
+
898
+ def serviceinfo
899
+ print <<-DESC
900
+ Usage:
901
+ app42 serviceInfo
902
+
903
+ Show meta information of the provisioned service
904
+
905
+ Options:
906
+ [--service SERVICE] # Name of service
907
+
908
+ Example:
909
+ $ app42 serviceInfo
910
+ 1: mysqldb
911
+ Select Service [mysqldb]: 1
912
+
913
+ +---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
914
+ | === mysqldb Details === |
915
+ +---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
916
+ | Database Name | Iaas Provider | Token | Vm Ip | State | User Name | Source Ip | Vm Port | Service Type | Destination Ip | Password | Memory | Service Name |
917
+ +---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
918
+ | demo_db | Amazon (Oregon) | 0pcmpc64srphrwijmy616uipdjv7t0oi | 172.16.2.167 | RUNNING | admk0ltirejxgh3o | 0.0.0.0 | 15847 | MySQL 5.5.31 | 54.213.93.154 | vagyqxta6e0a8q5jxunlr43v6cwohmdj | 256 MB | mysqldb |
919
+ +---------------+-----------------+----------------------------------+--------------+---------+------------------+-----------+---------+--------------+----------------+----------------------------------+--------+--------------+
920
+ DESC
921
+ end
922
+
968
923
  def setupbpaas
969
924
  print <<-DESC
970
925
  Usage:
@@ -1014,47 +969,6 @@ Example:
1014
969
  DESC
1015
970
  end
1016
971
 
1017
- def bpaasinfo
1018
- print <<-DESC
1019
- Usage:
1020
- app42 bPaaSInfo
1021
-
1022
- Show setup information
1023
-
1024
- Example:
1025
- $app42 bPaaSInfo
1026
- Enter Setup Name: demo
1027
-
1028
- +-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
1029
- | === demo Details === |
1030
- +-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
1031
- | Created On | Api Server Url | Setup Name | Iaas Provider | Setup Type | Vm Type | Setup Flavour | Setup Status | App Hq Url |
1032
- +-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
1033
- | 2014-02-24 08:00:21.0 | https://democloudapi.iab.app42paas.com | demo | Amazon (Oregon) | BPaaS | Shared | light | RUNNING | https://demoapphq.iab.app42paas.com |
1034
- +-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
1035
- DESC
1036
- end
1037
-
1038
- def bpaassetups
1039
- print <<-DESC
1040
- Usage:
1041
- app42 bPaaSSetups
1042
-
1043
- List all the BPaaS setups
1044
-
1045
- Example:
1046
- $app42 bPaaSSetups
1047
-
1048
- +-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
1049
- | === Setups List === |
1050
- +-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
1051
- | Created On | Api Server Url | Setup Name | Iaas Provider | Setup Type | Email | Vm Type | Setup Flavour | Setup Status | App Hq Url |
1052
- +-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
1053
- | 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 |
1054
- +-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
1055
- DESC
1056
- end
1057
-
1058
972
  def startbpaas
1059
973
  print <<-DESC
1060
974
  Usage:
@@ -1091,6 +1005,24 @@ Example:
1091
1005
  DESC
1092
1006
  end
1093
1007
 
1008
+ def restartbpaas
1009
+ print <<-DESC
1010
+ Usage:
1011
+ app42 restartBPaaS
1012
+
1013
+ Restart the BPaaS setup
1014
+
1015
+ Example:
1016
+ $app42 restartBPaaS
1017
+ Enter Setup Name: demo
1018
+ Restarting BPaaS Setup demo... OK
1019
+
1020
+ Operation is in progress, Please wait...|
1021
+
1022
+ BPaaS setup demo restarted successfully.
1023
+ DESC
1024
+ end
1025
+
1094
1026
  def upgradebpaas
1095
1027
  print <<-DESC
1096
1028
  Usage:
@@ -1129,11 +1061,52 @@ Example:
1129
1061
  2: Medium
1130
1062
  Select Flavour [Light]: 2
1131
1063
 
1132
- Downgrading Setup... OK
1064
+ Downgrading Setup... OK
1065
+
1066
+ Operation is in progress, Please wait...-
1067
+
1068
+ BPaaS setup demo downgraded successfully.
1069
+ DESC
1070
+ end
1071
+
1072
+ def bpaasinfo
1073
+ print <<-DESC
1074
+ Usage:
1075
+ app42 bPaaSInfo
1076
+
1077
+ Show setup information
1078
+
1079
+ Example:
1080
+ $app42 bPaaSInfo
1081
+ Enter Setup Name: demo
1082
+
1083
+ +-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
1084
+ | === demo Details === |
1085
+ +-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
1086
+ | Created On | Api Server Url | Setup Name | Iaas Provider | Setup Type | Vm Type | Setup Flavour | Setup Status | App Hq Url |
1087
+ +-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
1088
+ | 2014-02-24 08:00:21.0 | https://democloudapi.iab.app42paas.com | demo | Amazon (Oregon) | BPaaS | Shared | light | RUNNING | https://demoapphq.iab.app42paas.com |
1089
+ +-----------------------+----------------------------------------+------------+-----------------+------------+---------+---------------+--------------+-------------------------------------+
1090
+ DESC
1091
+ end
1092
+
1093
+ def bpaassetups
1094
+ print <<-DESC
1095
+ Usage:
1096
+ app42 bPaaSSetups
1097
+
1098
+ List all the BPaaS setups
1133
1099
 
1134
- Operation is in progress, Please wait...-
1135
-
1136
- BPaaS setup demo downgraded successfully.
1100
+ Example:
1101
+ $app42 bPaaSSetups
1102
+
1103
+ +-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
1104
+ | === Setups List === |
1105
+ +-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
1106
+ | Created On | Api Server Url | Setup Name | Iaas Provider | Setup Type | Email | Vm Type | Setup Flavour | Setup Status | App Hq Url |
1107
+ +-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
1108
+ | 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 |
1109
+ +-----------------------+----------------------------------------+------------+-----------------+------------+--------------------------+---------+---------------+--------------+-------------------------------------+
1137
1110
  DESC
1138
1111
  end
1139
1112
 
@@ -1170,6 +1143,23 @@ Example:
1170
1143
  DESC
1171
1144
  end
1172
1145
 
1146
+ def deletewordpress
1147
+ print <<-DESC
1148
+ Usage:
1149
+ app42 deleteWordPress
1150
+
1151
+ Delete the WordPress setup
1152
+
1153
+ Example:
1154
+ $app42 deleteWordPress
1155
+ Enter Setup Name: demo
1156
+ Deleting Setup... OK
1157
+
1158
+ Operation is in progress, Please wait...-
1159
+ WordPress Setup has been deleted successfully.
1160
+ DESC
1161
+ end
1162
+
1173
1163
  def startwordpress
1174
1164
  print <<-DESC
1175
1165
  Usage:
@@ -1204,6 +1194,24 @@ Example:
1204
1194
  Operation is in progress, Please wait...|
1205
1195
  WordPress Setup has been stopped successfully.
1206
1196
  DESC
1197
+ end
1198
+
1199
+ def restartwordpress
1200
+ print <<-DESC
1201
+ Usage:
1202
+ app42 restartWordPress
1203
+
1204
+ Restart the WordPress setup
1205
+
1206
+ Example:
1207
+ $app42 restartWordPress
1208
+ Enter Wordpress Name: demo
1209
+
1210
+ Restarting Wordpress Setup demo... OK
1211
+
1212
+ Operation is in progress, Please wait...-
1213
+ WordPress Setup has been restarted successfully.
1214
+ DESC
1207
1215
  end
1208
1216
 
1209
1217
  def upgradewordpress
@@ -1237,7 +1245,7 @@ Usage:
1237
1245
  Downgrade WordPress by choosing required configuration
1238
1246
 
1239
1247
  Example:
1240
- $app42 upgradeWordPress
1248
+ $app42 downgradeWordPress
1241
1249
  Enter Setup Name: demo
1242
1250
 
1243
1251
  1: Light
@@ -1250,23 +1258,6 @@ Example:
1250
1258
 
1251
1259
  WordPress setup demo downgraded successfully.
1252
1260
  DESC
1253
- end
1254
-
1255
- def deletewordpress
1256
- print <<-DESC
1257
- Usage:
1258
- app42 deleteWordPress
1259
-
1260
- Delete the WordPress setup
1261
-
1262
- Example:
1263
- $app42 deleteWordPress
1264
- Enter Setup Name: demo
1265
- Deleting Setup... OK
1266
-
1267
- Operation is in progress, Please wait...-
1268
- Setup deleted successfully.
1269
- DESC
1270
1261
  end
1271
1262
 
1272
1263
  def wordpressinfo
@@ -1314,63 +1305,6 @@ Example:
1314
1305
  DESC
1315
1306
  end
1316
1307
 
1317
- def addcustomurl
1318
- print <<-DESC
1319
- Usage:
1320
- app42 addCustomURL
1321
-
1322
- Add a custom URL to an app
1323
-
1324
- Example:
1325
- $app42 addCustomURL
1326
- Enter App Name: demo
1327
-
1328
- Enter Custom URL: http://test.naveengoswami.com
1329
-
1330
- Adding Custom URL To Application demo... OK
1331
- Custom URL added successfully.
1332
- DESC
1333
- end
1334
-
1335
- def removecustomurl
1336
- print <<-DESC
1337
- Usage:
1338
- app42 removeCustomURL
1339
-
1340
- Remove a custom URL from an app
1341
-
1342
- Example:
1343
- $ app42 removeCustomURL
1344
- Enter App Name: demo
1345
-
1346
- Enter Custom URL: http://test.naveengoswami.com
1347
-
1348
- Removing Custom URL... OK
1349
- Custom URL deleted successfully.
1350
- DESC
1351
- end
1352
-
1353
- def customurlinfo
1354
- print <<-DESC
1355
- Usage:
1356
- app42 customURLInfo
1357
-
1358
- List all custom URLs of an app
1359
-
1360
- Example:
1361
- $app42 customURLInfo
1362
- Enter App Name: demo
1363
-
1364
- +----------+-----------------------+-------------------------------+
1365
- | === testPhp Custome URLs Details === |
1366
- +----------+-----------------------+-------------------------------+
1367
- | App Name | Created On | Url |
1368
- +-------------+-----------------------+----------------------------+
1369
- | demo | 2014-01-27 06:35:55.0 | http://test.naveengoswami.com |
1370
- +----------+-----------------------+-------------------------------+
1371
- DESC
1372
- end
1373
-
1374
1308
  def setupgpaas
1375
1309
  print <<-DESC
1376
1310
  Usage:
@@ -1402,6 +1336,23 @@ Example:
1402
1336
  DESC
1403
1337
  end
1404
1338
 
1339
+ def deletegpaas
1340
+ print <<-DESC
1341
+ Usage:
1342
+ app42 deleteGPaaS
1343
+
1344
+ Delete the GPaaS setup
1345
+
1346
+ Example:
1347
+ $app42 deleteGPaaS
1348
+ Enter Setup Name: demo
1349
+ Deleting Setup... OK
1350
+
1351
+ Operation is in progress, Please wait...|
1352
+ GPaaS Setup has been deleted successfully.
1353
+ DESC
1354
+ end
1355
+
1405
1356
  def startgpaas
1406
1357
  print <<-DESC
1407
1358
  Usage:
@@ -1436,6 +1387,23 @@ Example:
1436
1387
  DESC
1437
1388
  end
1438
1389
 
1390
+ def restartgpaas
1391
+ print <<-DESC
1392
+ Usage:
1393
+ app42 restartGPaaS
1394
+
1395
+ Restart the GPaaS setup
1396
+
1397
+ Example:
1398
+ $app42 restartGPaaS
1399
+ Enter Setup Name: demo
1400
+ Restarting GPaaS Setup demo... OK
1401
+
1402
+ Operation is in progress, Please wait...|
1403
+ GPaaS Setup has been restarted successfully.
1404
+ DESC
1405
+ end
1406
+
1439
1407
  def upgradegpaas
1440
1408
  print <<-DESC
1441
1409
  Usage:
@@ -1481,23 +1449,6 @@ Example:
1481
1449
  DESC
1482
1450
  end
1483
1451
 
1484
- def deletegpaas
1485
- print <<-DESC
1486
- Usage:
1487
- app42 deleteGPaaS
1488
-
1489
- Delete the GPaaS setup
1490
-
1491
- Example:
1492
- $app42 deleteGPaaS
1493
- Enter Setup Name: demo
1494
- Deleting Setup... OK
1495
-
1496
- Operation is in progress, Please wait...-
1497
- Setup deleted successfully.
1498
- DESC
1499
- end
1500
-
1501
1452
  def gpaasinfo
1502
1453
  print <<-DESC
1503
1454
  Usage:
@@ -1543,8 +1494,102 @@ Example:
1543
1494
  DESC
1544
1495
  end
1545
1496
 
1546
- def version
1547
- print <<-DESC
1497
+ def supportedservices
1498
+ print <<-DESC
1499
+ Usage:
1500
+ app42 supportedServices
1501
+
1502
+ List the supported services by App42
1503
+
1504
+ Example:
1505
+ $app42 supportedServices
1506
+ +--------------+--------------+
1507
+ | === App42 PaaS Services === |
1508
+ +--------------+--------------+
1509
+ | Name | Version |
1510
+ +--------------+--------------+
1511
+ | MySQL | 5.5.1 |
1512
+ | Mongodb | 2.4 |
1513
+ | Couchdb | 10.1 |
1514
+ | PostgreSQL | 9.1 |
1515
+ +--------------+--------------+
1516
+ DESC
1517
+ end
1518
+
1519
+ def activities
1520
+ print <<-DESC
1521
+ Usage:
1522
+ app42 activities
1523
+
1524
+ List all activities with their status
1525
+
1526
+ Example:
1527
+ $app42 activities
1528
+ +------------+-----------+------+------+-----------------------+
1529
+ | === User Activities === |
1530
+ +------------+-----------+------+------+-----------------------+
1531
+ | Operation | Status | Name | Type | Date |
1532
+ +------------+-----------+------+------+-----------------------+
1533
+ | setupInfra | COMPLETED | demo | APP | 2013-10-25 06:18:42.0 |
1534
+ | scale | COMPLETED | demo | APP | 2013-10-25 06:40:39.0 |
1535
+ | scale | COMPLETED | demo | APP | 2013-10-25 06:41:25.0 |
1536
+ | descale | COMPLETED | demo | APP | 2013-10-25 06:42:12.0 |
1537
+ | descale | COMPLETED | demo | APP | 2013-10-25 06:42:13.0 |
1538
+ | restart | COMPLETED | demo | APP | 2013-10-25 06:44:31.0 |
1539
+ | stop | COMPLETED | demo | APP | 2013-10-25 06:45:23.0 |
1540
+ | start | COMPLETED | demo | APP | 2013-10-25 06:45:49.0 |
1541
+ | scale | COMPLETED | demo | APP | 2013-10-25 06:52:56.0 |
1542
+ | scale | COMPLETED | demo | APP | 2013-10-25 06:53:24.0 |
1543
+ | descale | COMPLETED | demo | APP | 2013-10-25 06:58:10.0 |
1544
+ | descale | COMPLETED | demo | APP | 2013-10-25 06:58:10.0 |
1545
+ +------------+-----------+------+------+-----------------------+
1546
+ DESC
1547
+ end
1548
+
1549
+ def runtimes
1550
+ print <<-DESC
1551
+ Usage:
1552
+ app42 runtimes
1553
+
1554
+ List the supported runtimes
1555
+
1556
+ Example:
1557
+ $app42 runtimes
1558
+ +--------------+--------------+
1559
+ | === Available Runtimes === |
1560
+ +--------------+--------------+
1561
+ | Name | Version |
1562
+ +--------------+--------------+
1563
+ | Ruby | 2.0 |
1564
+ | Java | 6.0 |
1565
+ | Java | 7.0 |
1566
+ | Php | 5.3 |
1567
+ | Php | 5.5 |
1568
+ +--------------+--------------+
1569
+ DESC
1570
+ end
1571
+
1572
+ def iaasproviders
1573
+ print <<-DESC
1574
+ Usage:
1575
+ app42 iaasProviders
1576
+
1577
+ List the supported IaaS providers by App42
1578
+
1579
+ Example:
1580
+ $app42 iaasProviders
1581
+ +-----------------+-----------------+
1582
+ | === Available IaaS Providers === |
1583
+ +-----------------+-----------------+
1584
+ | Name | Zone |
1585
+ +-----------------+-----------------+
1586
+ | Amazon | (Oregon) |
1587
+ +-----------------+-----------------+
1588
+ DESC
1589
+ end
1590
+
1591
+ def version
1592
+ print <<-DESC
1548
1593
  Usage:
1549
1594
  app42 version
1550
1595
 
@@ -1554,8 +1599,7 @@ Example:
1554
1599
  $app42 version
1555
1600
  App42 current version: 0.5.3
1556
1601
  DESC
1557
-
1558
- end
1602
+ end
1559
1603
 
1560
1604
  end
1561
1605