pi 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README CHANGED
@@ -12,6 +12,7 @@ _Copyright 2010-2012, Samsung.
12
12
  Installing Ruby and RubyGems on Windows and Linux computers(If you have already installed Ruby and RubyGems, then you can skip to Installing pi Steps):
13
13
  Windows:
14
14
  Download and install Ruby Installer for Windows from http://www.rubyinstaller.org. The installer already includes RubyGems.
15
+ Be sure you use the Ruby-enabled command prompt window when you later install and use pi. You access this command prompt from the Windows Start menu (All Programs > Ruby <version> > Start Command Prompt with Ruby).
15
16
  Linux:
16
17
  Install the full Ruby package and RubyGems:
17
18
  $ apt-get install ruby-full rubygems
@@ -63,7 +64,6 @@ _Copyright 2010-2012, Samsung.
63
64
  info List system information
64
65
  user Display user information
65
66
  targets List available targets infomation
66
- password [newpassword] Change the password for the current user
67
67
  github [name] Bind to the github account
68
68
  runtimes Display the supported runtimes of the system
69
69
  frameworks Display the supported frameworks of the system
@@ -100,6 +100,7 @@ _Copyright 2010-2012, Samsung.
100
100
  app-service [appname] Display the bind services for the application
101
101
  bind-service [appname] Bind a service to an application
102
102
  unbind-service [appname] Unbind a service to an application
103
+
103
104
  DNS
104
105
  app-dns [appname] Display the mapped urls for the application
105
106
  map-dns [appname] Map the url for the application
@@ -114,7 +115,7 @@ Password: *******
114
115
  Successfully logged into [http://api.staging.samsungcloud.org]
115
116
 
116
117
  ubuntu@admin:~$ pi version
117
- pi 0.1.21
118
+ pi 0.1.22
118
119
 
119
120
  ubuntu@admin:~$ pi user
120
121
 
@@ -155,11 +156,6 @@ ubuntu@admin:~$ pi frameworks
155
156
  | sinatra |
156
157
  +----------+
157
158
 
158
- ubuntu@admin:~$ pi password
159
- New Password: ****
160
- Verify Password: ****
161
- ok
162
-
163
159
  ubuntu@admin:~$ pi github
164
160
  Please input your name: ruanzhimin
165
161
  Please input your email: ruanzhimin@gmail.com
@@ -179,7 +175,6 @@ Currently available pi commands are:
179
175
  info List system information
180
176
  user Display user information
181
177
  targets List available targets infomation
182
- password [newpassword] Change the password for the current user
183
178
  github [name] Bind to the github account
184
179
  runtimes Display the supported runtimes of the system
185
180
  frameworks Display the supported frameworks of the system
@@ -216,6 +211,7 @@ Currently available pi commands are:
216
211
  app-service [appname] Display the bind services for the application
217
212
  bind-service [appname] Bind a service to an application
218
213
  unbind-service [appname] Unbind a service to an application
214
+
219
215
  DNS
220
216
  app-dns [appname] Display the mapped urls for the application
221
217
  map-dns [appname] Map the url for the application
@@ -236,252 +232,388 @@ Available options:
236
232
 
237
233
  ubuntu@admin:~$ pi projects
238
234
 
239
- +-----------------+---------+-----------+----------+---------------------------------------------------------------------+------+-------------+
240
- | Name | Runtime | Framework | Git Type | GitUrl | ID | Description |
241
- +-----------------+---------+-----------+----------+---------------------------------------------------------------------+------+-------------+
242
- | javatest | java | spring | cloudpi | http://wangjing@git-staging.samsungcloud.org/wangjing/javatest.git | 1955 | test |
243
- | javatestgithub | java | spring | github | https://ruanzhimin@github.com/ruanzhimin/javatestgithub.git | 1931 | test |
244
- | javawj | java | spring | cloudpi | http://wangjing@git-staging.samsungcloud.org/wangjing/javawj.git | 2031 | test |
245
- | railstest | ruby18 | rails3 | cloudpi | http://wangjing@git-staging.samsungcloud.org/wangjing/railstest.git | 1928 | test |
246
- | railstestgithub | ruby18 | rails3 | github | https://ruanzhimin@github.com/ruanzhimin/railstestgithub.git | 1929 | test |
247
- | railswj | ruby18 | rails3 | cloudpi | http://wangjing@git-staging.samsungcloud.org/wangjing/railswj.git | 2028 | test |
248
- | tmp1 | ruby18 | rails | cloudpi | http://wangjing@git-staging.samsungcloud.org/wangjing/tmp1.git | 1882 | test |
249
- +-----------------+---------+-----------+----------+---------------------------------------------------------------------+------+-------------+
235
+ +-----------------+---------+-----------+----------+-------------------------------------------------------------------+------+-------------+
236
+ | Name | Runtime | Framework | Git Type | GitUrl | ID | Description |
237
+ +-----------------+---------+-----------+----------+-------------------------------------------------------------------+------+-------------+
238
+ | javatestgithub | java | spring | github | https://ruanzhimin@github.com/ruanzhimin/javatestgithub.git | 1931 | test |
239
+ | railstestgithub | ruby18 | rails3 | github | https://ruanzhimin@github.com/ruanzhimin/railstestgithub.git | 1929 | test |
240
+ | railswj | ruby18 | rails3 | cloudpi | http://wangjing@git-staging.samsungcloud.org/wangjing/railswj.git | 2028 | test |
241
+ +-----------------+---------+-----------+----------+-------------------------------------------------------------------+------+-------------+
250
242
 
251
243
  ubuntu@admin:~$ pi create-project
252
- Project Name: railsdemo
244
+ Project Name: javawj
253
245
  =============Runtime============
254
246
  1. java
255
247
  2. ruby18
256
- Select Runtime: 2
257
- Selected Runtime: ruby18
248
+ Select Runtime: 1
249
+ Selected Runtime: java
258
250
  =============Frameworks============
259
- 1. rails3
260
- 2. sinatra
261
- Select Framework: 1
262
- Selected Framework: rails3
251
+ 1. lift
252
+ 2. spring
253
+ 3. grails
254
+ 4. java_web
255
+ Select Framework: 2
256
+ Selected Framework: spring
263
257
  Please enter in the description: test
264
258
  =============Repository Types============
265
259
  1. cloudpi
266
260
  2. github
267
261
  Select Repository Type: 1
268
262
  Selected Repository Type: cloudpi
269
- Creating project "railsdemo": ...........OK
263
+ Creating project "javawj": ...........OK
270
264
 
271
- ubuntu@admin:~$ pi create-app
272
- Application Name: railsdemo
265
+ ubuntu@admin:~$ pi upload
266
+ =============Project Name=======
267
+ 1. javatestgithub
268
+ 2. javawj
269
+ Select Project: 2
270
+ Selected Project: javawj
271
+ Please enter the version: paashelp
272
+ Please enter in the description: paashelp
273
+ Please enter the path of upload war file: /home/wangjing/paashelp.war
274
+ Uploading "paashelp.war": .OK
275
+
276
+ ubuntu@admin:~$ pi project-apps
273
277
  =============Project Name===========
274
- 1. javatest
275
- 2. javatestgithub
276
- 3. javawj
277
- 4. railsdemo
278
- 5. railstest
279
- 6. railstestgithub
280
- 7. railswj
281
- 8. tmp1
278
+ 1. javatestgithub
279
+ 2. javawj
280
+ 3. railstestgithub
281
+ 4. railswj
282
282
  Select Project: 4
283
- Selected Project: railsdemo
284
- Tag: v0.0.0
283
+ Selected Project: railswj
284
+ +------------+-----------+-----------------------------------------------+--------+---------+-----------+
285
+ | Target | AppName | URL | Tag | Status | Instances |
286
+ +------------+-----------+-----------------------------------------------+--------+---------+-----------+
287
+ | ap-ne-test | railsdemo | railsdemo.wangjing.ap-ne-test.samsungpaas.com | v0.0.0 | STARTED | 1 |
288
+ +------------+-----------+-----------------------------------------------+--------+---------+-----------+
289
+
290
+ ubuntu@admin:~$ pi create-app
291
+ Application Name: javaapp
292
+ =============Project Name===========
293
+ 1. javatestgithub
294
+ 2. javawj
295
+ 3. railstestgithub
296
+ 4. railswj
297
+ Select Project: 2
298
+ Selected Project: javawj
299
+ =============Versions============
300
+ 1. paashelp
301
+ Select Version: 1
302
+ Selected Version: paashelp
285
303
  =============Targets============
286
304
  1. ap-ne-test-http://ap-ne-test.samsungcloud.org
287
305
  Select Target: 1
288
306
  Selected Target: ap-ne-test-http://ap-ne-test.samsungcloud.org
289
- Available memory: 5568 M
290
- URL: railsdemo.wangjing.ap-ne-test.samsungpaas.com
307
+ Available memory: 6080 M
308
+ URL: javaapp.wangjing.ap-ne-test.samsungpaas.com
291
309
  Memory reservation (64M, 128M, 256M, 512M, 1G, 2G) [64M]:
292
310
  How many instances? [1]:
311
+ Need debug? [yN]:
293
312
  Need restart? [yN]:
294
313
  Need monitor? [yN]:
295
314
  Branch: master
296
- Creating application "railsdemo": .....................................................OK
315
+ Creating application "javaapp": ..........................................OK
297
316
 
298
317
  ubuntu@admin:~$ pi apps
299
318
  =============Project Name===========
300
- 1. javatest
301
- 2. javatestgithub
302
- 3. javawj
303
- 4. railsdemo
304
- 5. railstest
305
- 6. railstestgithub
306
- 7. railswj
307
- 8. tmp1
308
- Select Project: 4
309
- Selected Project: railsdemo
310
- +------------+-----------+-----------------------------------------------+-------------+---------+---------+-----------+-------------------+
311
- | Target | App name | URL | Deploy Type | Version | Status | Instances | Running Instances |
312
- +------------+-----------+-----------------------------------------------+-------------+---------+---------+-----------+-------------------+
313
- | ap-ne-test | railsdemo | railsdemo.wangjing.ap-ne-test.samsungpaas.com | git | v0.0.0 | STARTED | 1 | 1 |
314
- +------------+-----------+-----------------------------------------------+-------------+---------+---------+-----------+-------------------+
319
+ 1. javatestgithub
320
+ 2. javawj
321
+ 3. railstestgithub
322
+ 4. railswj
323
+ Select Project: 2
324
+ Selected Project: javawj
325
+ +------------+----------+---------------------------------------------+-------------+----------+---------+-----------+-------------------+
326
+ | Target | App name | URL | Deploy Type | Version | Status | Instances | Running Instances |
327
+ +------------+----------+---------------------------------------------+-------------+----------+---------+-----------+-------------------+
328
+ | ap-ne-test | javaapp | javaapp.wangjing.ap-ne-test.samsungpaas.com | binary | paashelp | STARTED | 1 | 1 |
329
+ +------------+----------+---------------------------------------------+-------------+----------+---------+-----------+-------------------+
315
330
 
316
331
  ubuntu@admin:~$ pi stop-app
317
332
  =============Project Name===========
318
- 1. javatest
319
- 2. javatestgithub
320
- 3. javawj
321
- 4. railsdemo
322
- 5. railstest
323
- 6. railstestgithub
324
- 7. railswj
325
- 8. tmp1
326
- Select Project: 4
327
- Selected Project: railsdemo
333
+ 1. javatestgithub
334
+ 2. javawj
335
+ 3. railstestgithub
336
+ 4. railswj
337
+ Select Project: 2
338
+ Selected Project: javawj
328
339
  =============Application Name===========
329
- 1. railsdemo
340
+ 1. javaapp
330
341
  Select Application: 1
331
- Selected Application: railsdemo
342
+ Selected Application: javaapp
332
343
  Stoping application: OK
333
344
 
334
345
  ubuntu@admin:~$ pi start-app
335
346
  =============Project Name===========
336
- 1. javatest
337
- 2. javatestgithub
338
- 3. javawj
339
- 4. railsdemo
340
- 5. railstest
341
- 6. railstestgithub
342
- 7. railswj
343
- 8. tmp1
344
- Select Project: 4
345
- Selected Project: railsdemo
347
+ 1. javatestgithub
348
+ 2. javawj
349
+ 3. railstestgithub
350
+ 4. railswj
351
+ Select Project: 2
352
+ Selected Project: javawj
353
+ =============Application Name===========
354
+ 1. javaapp
355
+ Select Application: 1
356
+ Selected Application: javaapp
357
+ Starting application: ...............................OK
358
+
359
+ ubuntu@admin:~$ pi status
360
+ =============Project Name===========
361
+ 1. javatestgithub
362
+ 2. javawj
363
+ 3. railstestgithub
364
+ 4. railswj
365
+ Select Project: 2
366
+ Selected Project: javawj
346
367
  =============Application Name===========
347
- 1. railsdemo
368
+ 1. javaapp
348
369
  Select Application: 1
349
- Selected Application: railsdemo
350
- Starting application: ................................OK
370
+ Selected Application: javaapp
371
+ +-------------+---------+--------+-----------+---------+--------------+------------+
372
+ | Instance ID | Status | CPU(%) | Memory(M) | Disk(M) | RequestCount | ErrorCount |
373
+ +-------------+---------+--------+-----------+---------+--------------+------------+
374
+ | 5531b2 | running | 21.393 | 258 | 52 | 0 | 0 |
375
+ | 882a94 | dead | 0 | 0 | 0 | 0 | 0 |
376
+ +-------------+---------+--------+-----------+---------+--------------+------------+
351
377
 
352
378
  ubuntu@admin:~$ pi scale-app
353
379
  =============Project Name===========
354
- 1. javatest
355
- 2. javatestgithub
356
- 3. javawj
357
- 4. railsdemo
358
- 5. railstest
359
- 6. railstestgithub
360
- 7. railswj
361
- 8. tmp1
362
- Select Project: 4
363
- Selected Project: railsdemo
380
+ 1. javatestgithub
381
+ 2. javawj
382
+ 3. railstestgithub
383
+ 4. railswj
384
+ Select Project: 2
385
+ Selected Project: javawj
364
386
  =============Application Name===========
365
- 1. railsdemo
387
+ 1. javaapp
366
388
  Select Application: 1
367
- Selected Application: railsdemo
368
- How many instances? [1]: 3
389
+ Selected Application: javaapp
390
+ How many instances? [1]: 2
369
391
  Scaling application: .....................OK
370
392
 
371
- ubuntu@admin:~$ pi create-env railsdemo
393
+ ubuntu@admin:~$ pi app-log
394
+ =============Project Name===========
395
+ 1. javatestgithub
396
+ 2. javawj
397
+ 3. railstestgithub
398
+ 4. railswj
399
+ Select Project: 2
400
+ Selected Project: javawj
401
+ =============Application Name===========
402
+ 1. javaapp
403
+ Select Application: 1
404
+ Selected Application: javaapp
405
+ Select instance index(from 0 to 1) [0]: 0
406
+ 1: stderr.log 914B
407
+ 2: stdout.log 0B
408
+ Select logs, indexed list?: 1
409
+ Selected logs: stderr.log
410
+
411
+ Jul 20, 2012 7:25:52 AM org.apache.coyote.http11.Http11Protocol init
412
+ INFO: Initializing Coyote HTTP/1.1 on http-39652
413
+ Jul 20, 2012 7:25:52 AM org.apache.catalina.startup.Catalina load
414
+ INFO: Initialization processed in 1155 ms
415
+ Jul 20, 2012 7:25:52 AM org.apache.catalina.core.StandardService start
416
+ INFO: Starting service Catalina
417
+ Jul 20, 2012 7:25:52 AM org.apache.catalina.core.StandardEngine start
418
+ INFO: Starting Servlet Engine: Apache Tomcat/6.0.32
419
+ Jul 20, 2012 7:25:52 AM org.apache.catalina.startup.HostConfig deployWAR
420
+ INFO: Deploying web application archive probe.war
421
+ Jul 20, 2012 7:25:57 AM org.apache.catalina.startup.HostConfig deployDirectory
422
+ INFO: Deploying web application directory ROOT
423
+ Jul 20, 2012 7:25:57 AM org.apache.coyote.http11.Http11Protocol start
424
+ INFO: Starting Coyote HTTP/1.1 on http-39652
425
+ Jul 20, 2012 7:25:57 AM org.apache.catalina.startup.Catalina start
426
+ INFO: Server startup in 5332 ms
427
+
428
+ ubuntu@admin:~$ pi create-env
429
+ =============Project Name===========
430
+ 1. javatestgithub
431
+ 2. javawj
432
+ 3. railstestgithub
433
+ 4. railswj
434
+ Select Project: 2
435
+ Selected Project: javawj
436
+ =============Application Name===========
437
+ 1. javaapp
438
+ Select Application: 1
439
+ Selected Application: javaapp
372
440
  Environment Name: aa
373
441
  Environment Value: bb
374
442
  OK
375
443
 
376
- ubuntu@admin:~$ pi app-env railsdemo
444
+ ubuntu@admin:~$ pi app-env
445
+ =============Project Name===========
446
+ 1. javatestgithub
447
+ 2. javawj
448
+ 3. railstestgithub
449
+ 4. railswj
450
+ Select Project: 2
451
+ Selected Project: javawj
452
+ =============Application Name===========
453
+ 1. javaapp
454
+ Select Application: 1
455
+ Selected Application: javaapp
377
456
  +------+-------+
378
457
  | Name | Value |
379
458
  +------+-------+
380
459
  | aa | bb |
381
460
  +------+-------+
382
461
 
383
- ubuntu@admin:~$ pi delete-env railsdemo
462
+ ubuntu@admin:~$ pi delete-env
463
+ =============Project Name===========
464
+ 1. javatestgithub
465
+ 2. javawj
466
+ 3. railstestgithub
467
+ 4. railswj
468
+ Select Project: 2
469
+ Selected Project: javawj
470
+ =============Application Name===========
471
+ 1. javaapp
472
+ Select Application: 1
473
+ Selected Application: javaapp
384
474
  Environment Name: aa
385
475
  OK
386
476
 
387
- ubuntu@admin:~$ pi app-log
477
+ ubuntu@admin:~$ pi map-dns
388
478
  =============Project Name===========
389
- 1. javatest
390
- 2. javatestgithub
391
- 3. javawj
392
- 4. railsdemo
393
- 5. railstest
394
- 6. railstestgithub
395
- 7. railswj
396
- 8. tmp1
397
- Select Project: 4
398
- Selected Project: railsdemo
479
+ 1. javatestgithub
480
+ 2. javawj
481
+ 3. railstestgithub
482
+ 4. railswj
483
+ Select Project: 2
484
+ Selected Project: javawj
399
485
  =============Application Name===========
400
- 1. railsdemo
486
+ 1. javaapp
401
487
  Select Application: 1
402
- Selected Application: railsdemo
403
- Select instance index(from 0 to 2) [0]: 2
404
- 1: migration.log 578B
405
- 2: staging.log 966B
406
- 3: stderr.log 185B
407
- 4: stdout.log 148B
408
- Select logs, indexed list?: 1
409
- Selected logs: migration.log
410
-
411
- WARNING: Global access to Rake DSL methods is deprecated. Please include
412
- ... Rake::DSL into classes and modules which use the Rake DSL methods.
413
- WARNING: DSL method Railshelloworld::Application#task called at /mnt/vcap.local/dea/apps/railsdemo-2-ef9982b6297fc51c2d4d4ca0f763bd71/app/rubygems/ruby/1.8/gems/railties-3.0.5/lib/rails/application.rb:214:in `initialize_tasks'
414
- ** Invoke db:migrate (first_time)
415
- ** Invoke environment (first_time)
416
- ** Execute environment
417
- ** Execute db:migrate
418
- ** Invoke db:schema:dump (first_time)
419
- ** Invoke environment
420
- ** Execute db:schema:dump
488
+ Selected Application: javaapp
489
+ 1: dnswj.samsungpaas.com
490
+ Select dns, indexed list?: 1
491
+ Selected dns: dnswj.samsungpaas.com
492
+ Mapping dns: ..OK
421
493
 
422
- ubuntu@admin:~$ pi delete-app
494
+ ubuntu@admin:~$ pi app-dns
423
495
  =============Project Name===========
424
- 1. javatest
425
- 2. javatestgithub
426
- 3. javawj
427
- 4. railsdemo
428
- 5. railstest
429
- 6. railstestgithub
430
- 7. railswj
431
- 8. tmp1
432
- Select Project: 4
433
- Selected Project: railsdemo
496
+ 1. javatestgithub
497
+ 2. javawj
498
+ 3. railstestgithub
499
+ 4. railswj
500
+ Select Project: 2
501
+ Selected Project: javawj
434
502
  =============Application Name===========
435
- 1. railsdemo
503
+ 1. javaapp
436
504
  Select Application: 1
437
- Selected Application: railsdemo
438
- Deleting application: ........OK
439
-
440
- ubuntu@admin:~$ pi delete-project
505
+ Selected Application: javaapp
506
+ +-----------------------+
507
+ | Mapped DNS Name |
508
+ +-----------------------+
509
+ | dnswj.samsungpaas.com |
510
+ +-----------------------+
511
+
512
+ ubuntu@admin:~$ pi unmap-dns
441
513
  =============Project Name===========
442
- 1. javatest
443
- 2. javatestgithub
444
- 3. javawj
445
- 4. railsdemo
446
- 5. railstest
447
- 6. railstestgithub
448
- 7. railswj
449
- 8. tmp1
450
- Select Project: 4
451
- Selected Project: railsdemo
452
- Deleting project "railsdemo": .......OK
514
+ 1. javatestgithub
515
+ 2. javawj
516
+ 3. railstestgithub
517
+ 4. railswj
518
+ Select Project: 2
519
+ Selected Project: javawj
520
+ =============Application Name===========
521
+ 1. javaapp
522
+ Select Application: 1
523
+ Selected Application: javaapp
524
+ =============DNS============
525
+ 1. dnswj.samsungpaas.com
526
+ Select DNS: 1
527
+ Selected DNS: dnswj.samsungpaas.com
528
+ Unmapping dns: ..OK
529
+
530
+ ubuntu@admin:~$ pi bind-service
531
+ =============Project Name===========
532
+ 1. javatestgithub
533
+ 2. javawj
534
+ 3. railstestgithub
535
+ 4. railswj
536
+ Select Project: 2
537
+ Selected Project: javawj
538
+ =============Application Name===========
539
+ 1. javaapp
540
+ Select Application: 1
541
+ Selected Application: javaapp
542
+ 1: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
543
+ Select services, indexed list?: 1
544
+ Selected services: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
545
+ Binding service: ...............................OK
453
546
 
454
- ubuntu@admin:~$ pi project-apps
455
- =============Project Name=======
456
- 1. javatest
457
- 2. javatestgithub
458
- 3. railstest
459
- 4. railstestgithub
460
- 5. tmp1
461
- Select Project: 5
462
- Selected Project: tmp1
463
- No applications
547
+ ubuntu@admin:~$ pi app-service
548
+ =============Project Name===========
549
+ 1. javatestgithub
550
+ 2. javawj
551
+ 3. railstestgithub
552
+ 4. railswj
553
+ Select Project: 2
554
+ Selected Project: javawj
555
+ =============Application Name===========
556
+ 1. javaapp
557
+ Select Application: 1
558
+ Selected Application: javaapp
559
+ +-------------------------------------------------+---------+-----------+
560
+ | Name | Version | Type |
561
+ +-------------------------------------------------+---------+-----------+
562
+ | mysql_demo_251_cloudpi-dedicated-mysql_wangjing | 5.1.410 | dedicated |
563
+ +-------------------------------------------------+---------+-----------+
564
+
565
+ ubuntu@admin:~$ pi unbind-service
566
+ =============Project Name===========
567
+ 1. javatestgithub
568
+ 2. javawj
569
+ 3. railstestgithub
570
+ 4. railswj
571
+ Select Project: 2
572
+ Selected Project: javawj
573
+ =============Application Name===========
574
+ 1. javaapp
575
+ Select Application: 1
576
+ Selected Application: javaapp
577
+ =============Services============
578
+ 1. mysql_demo_251_cloudpi-dedicated-mysql_wangjing
579
+ Select Service: 1
580
+ Selected Service: mysql_demo_251_cloudpi-dedicated-mysql_wangjing
581
+ Unbinding service: ...................................................OK
464
582
 
465
583
  ubuntu@admin:~$ pi project-events
466
- =============Project Name=======
467
- 1. javatest
468
- 2. javatestgithub
469
- 3. railstest
470
- 4. railstestgithub
471
- 5. tmp1
472
- Select Project: 5
473
- Selected Project: tmp1
474
- No Events.
584
+ =============Project Name===========
585
+ 1. javatestgithub
586
+ 2. javawj
587
+ 3. railstestgithub
588
+ 4. railswj
589
+ Select Project: 2
590
+ Selected Project: javawj
591
+ +------------+---------+-----------------------+-----------+------------------------------------+
592
+ | Target | AppName | EventTime | EventInfo | EventDetail |
593
+ +------------+---------+-----------------------+-----------+------------------------------------+
594
+ | | | 2012-07-20 07:22:06.0 | INFO | Success to create project : javawj |
595
+ | ap-ne-test | javaapp | 2012-07-20 07:24:48.0 | INFO | Success to create appliation. |
596
+ | ap-ne-test | javaapp | 2012-07-20 07:25:34.0 | INFO | Success to stop application. |
597
+ | ap-ne-test | javaapp | 2012-07-20 07:26:01.0 | INFO | Success to start application. |
598
+ | ap-ne-test | javaapp | 2012-07-20 07:30:25.0 | INFO | Success to scale instances to 2 |
599
+ | ap-ne-test | javaapp | 2012-07-20 07:31:55.0 | INFO | Success to add env : aa=bb |
600
+ | ap-ne-test | javaapp | 2012-07-20 07:32:28.0 | INFO | Success to delete env. |
601
+ | ap-ne-test | javaapp | 2012-07-20 07:33:47.0 | INFO | Success to map url. |
602
+ | ap-ne-test | javaapp | 2012-07-20 07:34:12.0 | INFO | Success to unmap url. |
603
+ | ap-ne-test | javaapp | 2012-07-20 07:35:10.0 | INFO | Success to stop application. |
604
+ | ap-ne-test | javaapp | 2012-07-20 07:35:38.0 | INFO | Success to bind service. |
605
+ | ap-ne-test | javaapp | 2012-07-20 07:36:09.0 | INFO | Success to stop application. |
606
+ | ap-ne-test | javaapp | 2012-07-20 07:36:27.0 | INFO | Success to unbind service. |
607
+ +------------+---------+-----------------------+-----------+------------------------------------+
475
608
 
476
609
  ubuntu@admin:~$ pi project-tags
477
- =============Project Name=======
478
- 1. javatest
479
- 2. javatestgithub
480
- 3. railstest
481
- 4. railstestgithub
482
- 5. tmp1
483
- Select Project: 5
484
- Selected Project: tmp1
610
+ =============Project Name===========
611
+ 1. javatestgithub
612
+ 2. javawj
613
+ 3. railstestgithub
614
+ 4. railswj
615
+ Select Project: 4
616
+ Selected Project: railswj
485
617
 
486
618
  +--------+
487
619
  | Tag |
@@ -490,14 +622,13 @@ Selected Project: tmp1
490
622
  +--------+
491
623
 
492
624
  ubuntu@admin:~$ pi project-commits
493
- =============Project Name=======
494
- 1. javatest
495
- 2. javatestgithub
496
- 3. railstest
497
- 4. railstestgithub
498
- 5. tmp1
499
- Select Project: 5
500
- Selected Project: tmp1
625
+ =============Project Name===========
626
+ 1. javatestgithub
627
+ 2. javawj
628
+ 3. railstestgithub
629
+ 4. railswj
630
+ Select Project: 4
631
+ Selected Project: railswj
501
632
 
502
633
  =============Tag=======
503
634
  1. v0.0.0
@@ -506,22 +637,32 @@ Selected Tag: v0.0.0
506
637
  +------------------------------------------+---------------------------+--------------+
507
638
  | CommitId | Date | Comment |
508
639
  +------------------------------------------+---------------------------+--------------+
509
- | b3d90cb9d692f7a01d0043509557c54a6a8903e4 | 2012-07-03 08:50:50 +0000 | init project |
640
+ | d0275d482edca5dbcbaee9baa7acfcd8ed01ab60 | 2012-07-18 11:08:02 +0000 | init project |
510
641
  +------------------------------------------+---------------------------+--------------+
511
642
 
512
- ubuntu@admin:~$ pi upload
513
- =============Project Name=======
514
- 1. javatest
515
- 2. javatestgithub
516
- 3. javawj
517
- Select Project: 1
518
- Selected Project: javatest
519
- Please enter the version: v1
520
- Please enter in the description: test
521
- Please enter the path of upload war file: /home/wangjing/sample.war
522
- Not war file or path does not exist!
523
- Please enter the path of upload war file: /home/ubuntu/demo.war
524
- Uploading "demo.war": .OK
643
+ ubuntu@admin:~$ pi delete-app
644
+ =============Project Name===========
645
+ 1. javatestgithub
646
+ 2. javawj
647
+ 3. railstestgithub
648
+ 4. railswj
649
+ Select Project: 2
650
+ Selected Project: javawj
651
+ =============Application Name===========
652
+ 1. javaapp
653
+ Select Application: 1
654
+ Selected Application: javaapp
655
+ Deleting application: ..OK
656
+
657
+ ubuntu@admin:~$ pi delete-project
658
+ =============Project Name===========
659
+ 1. javatestgithub
660
+ 2. javawj
661
+ 3. railstestgithub
662
+ 4. railswj
663
+ Select Project: 2
664
+ Selected Project: javawj
665
+ Deleting project "javawj": ......OK
525
666
 
526
667
  ubuntu@admin:~$ pi logout
527
668
  Successfully logged out of [http://api.staging.samsungcloud.org]
@@ -388,19 +388,18 @@ module PI::Cli::Command
388
388
  display "#{tag}"
389
389
  else
390
390
  tag = client.project_binary(app[:projectId])
391
- puts tag
392
- puts tag.class
393
391
  err "No version!" if tag.nil? || tag.empty?
394
392
  choose do |menu|
395
393
  display "=============Versions============"
396
394
  menu.prompt = "Select Version: "
397
395
  menu.select_by = :index_or_name
398
396
  tag.each do |version|
399
- menu.choice("#{version[:versionName]}") { tag = version[:versionName] }
397
+ menu.choice("#{version[:versionName]}") { tag = version }
400
398
  end
401
399
  end
402
400
  display "Selected Version: ",false
403
- display "#{tag}"
401
+ display "#{tag[:versionName]}"
402
+ tag = tag[:versionName]
404
403
  end
405
404
  display "Updating application: ",false
406
405
 
@@ -412,7 +411,7 @@ module PI::Cli::Command
412
411
  end
413
412
  end
414
413
 
415
- client.update_app(appid,tag)
414
+ client.update_app(appid,tag)
416
415
  result = check_status(app[:name], "rollback")
417
416
  Thread.kill(t)
418
417
  if result[:code] == 200
@@ -66,6 +66,7 @@ Currently available pi commands are:
66
66
  app-service [appname] Display the bind services for the application
67
67
  bind-service [appname] Bind a service to an application
68
68
  unbind-service [appname] Unbind a service to an application
69
+
69
70
  DNS
70
71
  app-dns [appname] Display the mapped urls for the application
71
72
  map-dns [appname] Map the url for the application
@@ -1,5 +1,5 @@
1
1
  module PI
2
2
  module Cli
3
- VERSION = '0.1.21'
3
+ VERSION = '0.1.22'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 21
10
- version: 0.1.21
9
+ - 22
10
+ version: 0.1.22
11
11
  platform: ruby
12
12
  authors:
13
13
  - Samsung