pi 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -87,7 +87,7 @@ Password: *******
87
87
  Successfully logged into [http://api.staging.samsungcloud.org]
88
88
 
89
89
  ubuntu@admin:~$ pi version
90
- pi 0.1.14
90
+ pi 0.1.18
91
91
 
92
92
  ubuntu@admin:~$ pi user
93
93
 
@@ -298,20 +298,17 @@ Selected Tag: v0.0.0
298
298
 
299
299
  ubuntu@admin:~$ pi upload
300
300
  =============Project Name=======
301
- 1. javatmp1
302
- 2. railstmp3
303
- 3. testdemowj1
304
- 4. testdemowj2
305
- 5. tmp1
301
+ 1. javatest
302
+ 2. javatestgithub
306
303
  Select Project: 1
307
- Selected Project: javatmp1
308
- Please enter the version: test version
304
+ Selected Project: javatest
305
+ Please enter the version: v1
309
306
  Please enter in the description: test
310
- Please enter the path of upload war file: /home/wangjing/workspace/sample.war
307
+ Please enter the path of upload war file: /home/demo.war
311
308
  Deployment path does not exist!
312
- Please enter the path of upload war file: /home/wangjing/workspace/project/sample
309
+ Please enter the path of upload war file: /home/ubuntu/demo
313
310
  Please enter the path of upload war file:
314
- ? /home/wangjing/workspace/project/sample.war
311
+ ? /home/ubuntu/demo.war
315
312
  Uploading OK
316
313
 
317
314
  ubuntu@admin:~$ pi logout
@@ -332,9 +329,7 @@ Please input your email: ruanzhimin@gmail.com
332
329
  Please input your password: ************
333
330
  Error (HTTP 500): {"httpCode":500,"errorCode":1007,"httpDescription":"Internal Server Error","errorDescription":"Invalid github account."}
334
331
 
335
- ubuntu@admin:~$ pi project-events tmp4--trace
332
+ ubuntu@admin:~$ pi project-events tmp4
336
333
  Error (HTTP 500): {"httpCode":500,"errorCode":3004,"httpDescription":"Internal Server Error","errorDescription":"The project is
337
- not belongs to current account.Project name : tmp4--trace"}
338
-
339
-
334
+ not belongs to current account.Project name : tmp4"}
340
335
 
@@ -25,11 +25,12 @@ module PI::Cli::Command
25
25
  display projects_table
26
26
  end
27
27
 
28
- def create_project(projectname=nil)
29
- unless projectname
30
- loop{
28
+ def create_project(projectname=nil)
29
+ loop{
30
+ unless projectname
31
31
  projectname = ask("Project Name: ")
32
32
  err "Project Name required." if projectname.nil? || projectname.empty?
33
+ end
33
34
  if project_exists?(projectname)
34
35
  display "Project '#{projectname}' already exists."
35
36
  projectname =nil
@@ -37,8 +38,7 @@ module PI::Cli::Command
37
38
  else
38
39
  break
39
40
  end
40
- }
41
- end
41
+ }
42
42
 
43
43
  runtime = nil
44
44
  runtimes = client.runtimes
data/lib/cli/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module PI
2
2
  module Cli
3
- VERSION = '0.1.17'
3
+ VERSION = '0.1.18'
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: 57
4
+ hash: 63
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 17
10
- version: 0.1.17
9
+ - 18
10
+ version: 0.1.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - Samsung