pi 0.1.17 → 0.1.18
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 +10 -15
- data/lib/cli/commands/projects.rb +5 -5
- data/lib/cli/version.rb +1 -1
- metadata +3 -3
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.
|
|
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.
|
|
302
|
-
2.
|
|
303
|
-
3. testdemowj1
|
|
304
|
-
4. testdemowj2
|
|
305
|
-
5. tmp1
|
|
301
|
+
1. javatest
|
|
302
|
+
2. javatestgithub
|
|
306
303
|
Select Project: 1
|
|
307
|
-
Selected Project:
|
|
308
|
-
Please enter the 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/
|
|
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/
|
|
309
|
+
Please enter the path of upload war file: /home/ubuntu/demo
|
|
313
310
|
Please enter the path of upload war file:
|
|
314
|
-
? /home/
|
|
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
|
|
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
|
|
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
|
-
|
|
30
|
-
|
|
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
metadata
CHANGED