pi 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/README +33 -89
- data/lib/cli/commands/projects.rb +2 -2
- data/lib/cli/version.rb +1 -1
- metadata +3 -3
data/README
CHANGED
@@ -80,29 +80,25 @@ _Copyright 2010-2012, Samsung.
|
|
80
80
|
|
81
81
|
4. Example
|
82
82
|
|
83
|
-
|
83
|
+
ubuntu@admin:~$ pi login
|
84
84
|
URL: 'http://api.staging.samsungcloud.org'? y
|
85
85
|
User: wangjing
|
86
86
|
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
91
|
|
91
|
-
|
92
|
-
Description: CloudPi API Component
|
93
|
-
Build: continuously-20120709034655
|
94
|
-
Version: coulibiac-f85849
|
95
|
-
|
96
|
-
wangjing@wangjing-samsung-Desktop-System:~/git/pi/bin$ ./pi user
|
92
|
+
ubuntu@admin:~$ pi user
|
97
93
|
|
98
94
|
UserName: wangjing
|
99
95
|
DomainName: bst
|
100
96
|
RoleName: user
|
101
97
|
State: Active
|
102
|
-
Github Account Name:
|
103
|
-
Github Account Email:
|
98
|
+
Github Account Name: ruanzhimin
|
99
|
+
Github Account Email: ruanzhimin@gmail.com
|
104
100
|
|
105
|
-
|
101
|
+
ubuntu@admin:~$ pi targets
|
106
102
|
|
107
103
|
+-----------------+-----------------------------------------+
|
108
104
|
| Name | URL |
|
@@ -111,58 +107,7 @@ wangjing@wangjing-samsung-Desktop-System:~/git/pi/bin$ ./pi targets
|
|
111
107
|
| ap-ne-test | http://ap-ne-test.samsungcloud.org |
|
112
108
|
+-----------------+-----------------------------------------+
|
113
109
|
|
114
|
-
|
115
|
-
New Password: ****
|
116
|
-
Verify Password: ****
|
117
|
-
ok
|
118
|
-
|
119
|
-
wangjing@wangjing-samsung-Desktop-System:~/git/pi/bin$ ./pi github
|
120
|
-
Please input your name: ruanzhimin
|
121
|
-
Please input your email: ruanzhimin@gmail.com
|
122
|
-
Please input your password: ****************
|
123
|
-
ok
|
124
|
-
|
125
|
-
wangjing@wangjing-samsung-Desktop-System:~/git/pi/bin$ ./pi user
|
126
|
-
|
127
|
-
UserName: wangjing
|
128
|
-
DomainName: bst
|
129
|
-
RoleName: user
|
130
|
-
State: Active
|
131
|
-
Github Account Name: ruanzhimin
|
132
|
-
Github Account Email: ruanzhimin@gmail.com
|
133
|
-
|
134
|
-
wangjing@wangjing-samsung-Desktop-System:~/git/pi/bin$ ./pi runtimes
|
135
|
-
|
136
|
-
+--------+
|
137
|
-
| Name |
|
138
|
-
+--------+
|
139
|
-
| java |
|
140
|
-
| ruby18 |
|
141
|
-
+--------+
|
142
|
-
|
143
|
-
wangjing@wangjing-samsung-Desktop-System:~/git/pi/bin$ ./pi runtimes --json
|
144
|
-
[
|
145
|
-
"java",
|
146
|
-
"ruby18"
|
147
|
-
]
|
148
|
-
|
149
|
-
wangjing@wangjing-samsung-Desktop-System:~/git/pi/bin$ ./pi runtimes --trace
|
150
|
-
>>>
|
151
|
-
REQUEST: get http://api.staging.samsungcloud.org/info/runtimes
|
152
|
-
RESPONSE_HEADERS:
|
153
|
-
set_cookie : PLAY_FLASH=;Expires=Mon, 9-Jul-12 09:16:40 GMT;Path=/PLAY_ERRORS=;Expires=Mon, 9-Jul-12 09:16:40 GMT;Path=/PLAY_SESSION=;Expires=M
|
154
|
-
on, 9-Jul-12 09:16:40 GMT;Path=/
|
155
|
-
cache_control : no-cache
|
156
|
-
connection : keep-alive
|
157
|
-
server : Play! Framework;1.2.3;prod
|
158
|
-
content_length : 17
|
159
|
-
content_type : application/json
|
160
|
-
RESPONSE: [200]
|
161
|
-
[
|
162
|
-
"java",
|
163
|
-
"ruby18"
|
164
|
-
]
|
165
|
-
<<<
|
110
|
+
ubuntu@admin:~$ pi runtimes
|
166
111
|
|
167
112
|
+--------+
|
168
113
|
| Name |
|
@@ -171,7 +116,7 @@ RESPONSE: [200]
|
|
171
116
|
| ruby18 |
|
172
117
|
+--------+
|
173
118
|
|
174
|
-
|
119
|
+
ubuntu@admin:~$ pi frameworks
|
175
120
|
|
176
121
|
+----------+
|
177
122
|
| Name |
|
@@ -184,19 +129,18 @@ wangjing@wangjing-samsung-Desktop-System:~/git/pi/bin$ ./pi frameworks
|
|
184
129
|
| sinatra |
|
185
130
|
+----------+
|
186
131
|
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
pi 0.1.13 Coulibiac
|
192
|
-
|
193
|
-
wangjing@wangjing-samsung-Desktop-System:~/git/pi/bin$ ./pi -v
|
194
|
-
pi 0.1.13 Coulibiac
|
132
|
+
ubuntu@admin:~$ pi password
|
133
|
+
New Password: ****
|
134
|
+
Verify Password: ****
|
135
|
+
ok
|
195
136
|
|
196
|
-
|
197
|
-
|
137
|
+
ubuntu@admin:~$ pi github
|
138
|
+
Please input your name: ruanzhimin
|
139
|
+
Please input your email: ruanzhimin@gmail.com
|
140
|
+
Please input your password: ****************
|
141
|
+
ok
|
198
142
|
|
199
|
-
|
143
|
+
ubuntu@admin:~$ pi help
|
200
144
|
|
201
145
|
Usage: pi [options] command [<args>] [command_options]
|
202
146
|
Try 'pi help [command]' or 'pi help options' for more information.
|
@@ -227,7 +171,7 @@ Currently available pi commands are:
|
|
227
171
|
project-apps [projectname] List the applications for the project
|
228
172
|
upload [projectname] Upload the war package for java project
|
229
173
|
|
230
|
-
|
174
|
+
ubuntu@admin:~$ pi help options
|
231
175
|
|
232
176
|
Available options:
|
233
177
|
|
@@ -240,7 +184,7 @@ Available options:
|
|
240
184
|
-h, --help
|
241
185
|
--options
|
242
186
|
|
243
|
-
|
187
|
+
ubuntu@admin:~$ pi projects
|
244
188
|
|
245
189
|
+-------------+---------+-----------+-----------------------------------------------------------------------+-------------+
|
246
190
|
| Name | Runtime | Framework | GitUrl | Description |
|
@@ -252,7 +196,7 @@ wangjing@wangjing-samsung-Desktop-System:~/git/pi/bin$ ./pi projects
|
|
252
196
|
| tmp1 | ruby18 | rails | http://wangjing@git-staging.samsungcloud.org/wangjing/tmp1.git | test |
|
253
197
|
+-------------+---------+-----------+-----------------------------------------------------------------------+-------------+
|
254
198
|
|
255
|
-
|
199
|
+
ubuntu@admin:~$ pi create-project
|
256
200
|
Project Name: javatmp1
|
257
201
|
Project 'javatmp1' already exists.
|
258
202
|
Project Name: javademo
|
@@ -271,7 +215,7 @@ Selected Framework: spring
|
|
271
215
|
Please enter in the description: test
|
272
216
|
Creating project javademo: OK
|
273
217
|
|
274
|
-
|
218
|
+
ubuntu@admin:~$ pi projects
|
275
219
|
|
276
220
|
+-------------+---------+-----------+-----------------------------------------------------------------------+-------------+
|
277
221
|
| Name | Runtime | Framework | GitUrl | Description |
|
@@ -284,7 +228,7 @@ wangjing@wangjing-samsung-Desktop-System:~/git/pi/bin$ ./pi projects
|
|
284
228
|
| tmp1 | ruby18 | rails | http://wangjing@git-staging.samsungcloud.org/wangjing/tmp1.git | test |
|
285
229
|
+-------------+---------+-----------+-----------------------------------------------------------------------+-------------+
|
286
230
|
|
287
|
-
|
231
|
+
ubuntu@admin:~$ pi delete-project
|
288
232
|
=============Project Name=======
|
289
233
|
1. javademo
|
290
234
|
2. javatmp1
|
@@ -296,7 +240,7 @@ Select Project: 1
|
|
296
240
|
Selected Project: javademo
|
297
241
|
Deleting project [javademo]: OK
|
298
242
|
|
299
|
-
|
243
|
+
ubuntu@admin:~$ pi projects
|
300
244
|
|
301
245
|
+-------------+---------+-----------+-----------------------------------------------------------------------+-------------+
|
302
246
|
| Name | Runtime | Framework | GitUrl | Description |
|
@@ -308,7 +252,7 @@ wangjing@wangjing-samsung-Desktop-System:~/git/pi/bin$ ./pi projects
|
|
308
252
|
| tmp1 | ruby18 | rails | http://wangjing@git-staging.samsungcloud.org/wangjing/tmp1.git | test |
|
309
253
|
+-------------+---------+-----------+-----------------------------------------------------------------------+-------------+
|
310
254
|
|
311
|
-
|
255
|
+
ubuntu@admin:~$ pi project-apps
|
312
256
|
=============Project Name=======
|
313
257
|
1. javatmp1
|
314
258
|
2. railstmp3
|
@@ -319,7 +263,7 @@ Select Project: 5
|
|
319
263
|
Selected Project: tmp1
|
320
264
|
No applications
|
321
265
|
|
322
|
-
|
266
|
+
ubuntu@admin:~$ pi project-events
|
323
267
|
=============Project Name=======
|
324
268
|
1. javatmp1
|
325
269
|
2. railstmp3
|
@@ -330,7 +274,7 @@ Select Project: 5
|
|
330
274
|
Selected Project: tmp1
|
331
275
|
No Events.
|
332
276
|
|
333
|
-
|
277
|
+
ubuntu@admin:~$ pi project-tags
|
334
278
|
=============Project Name=======
|
335
279
|
1. javatmp1
|
336
280
|
2. railstmp3
|
@@ -346,7 +290,7 @@ Selected Project: tmp1
|
|
346
290
|
| v0.0.0 |
|
347
291
|
+--------+
|
348
292
|
|
349
|
-
|
293
|
+
ubuntu@admin:~$ pi project-commits
|
350
294
|
=============Project Name=======
|
351
295
|
1. javatmp1
|
352
296
|
2. railstmp3
|
@@ -366,7 +310,7 @@ Selected Tag: v0.0.0
|
|
366
310
|
| b3d90cb9d692f7a01d0043509557c54a6a8903e4 | 2012-07-03 08:50:50 +0000 | init project |
|
367
311
|
+------------------------------------------+---------------------------+--------------+
|
368
312
|
|
369
|
-
|
313
|
+
ubuntu@admin:~$ pi upload
|
370
314
|
=============Project Name=======
|
371
315
|
1. javatmp1
|
372
316
|
2. railstmp3
|
@@ -384,19 +328,19 @@ Please enter the path of upload war file:
|
|
384
328
|
? /home/wangjing/workspace/project/sample.war
|
385
329
|
Uploading OK
|
386
330
|
|
387
|
-
|
331
|
+
ubuntu@admin:~$ pi logout
|
388
332
|
Successfully logged out of [http://api.staging.samsungcloud.org]
|
389
333
|
|
390
334
|
5. Common Exception
|
391
335
|
|
392
|
-
|
336
|
+
ubuntu@admin:~$ pi login
|
393
337
|
URL: 'http://api.staging.samsungcloud.org'? n
|
394
338
|
URL: http://test.org
|
395
339
|
User: wangjing
|
396
340
|
Password: *******
|
397
341
|
Problem with login, Cannot access target (getaddrinfo: Name or service not known), try again or register for an account.
|
398
342
|
|
399
|
-
|
343
|
+
ubuntu@admin:~$ pi project-events tmp4--trace
|
400
344
|
Error (HTTP 500): {"httpCode":500,"errorCode":3004,"httpDescription":"Internal Server Error","errorDescription":"The project is
|
401
345
|
not belongs to current account.Project name : tmp4--trace"}
|
402
346
|
|
@@ -17,9 +17,9 @@ module PI::Cli::Command
|
|
17
17
|
return display JSON.pretty_generate(projects) if @options[:json]
|
18
18
|
return display "No Projects" if projects.nil? || projects.empty?
|
19
19
|
projects_table = table do |t|
|
20
|
-
t.headings = 'Name', 'Runtime', 'Framework', 'GitUrl', 'Description'
|
20
|
+
t.headings = 'Name', 'Runtime', 'Framework', 'Git Type','GitUrl', 'Description'
|
21
21
|
projects.each do |project|
|
22
|
-
t << [project[:name], project[:runtime] ,project[:framework], project[:gitUrl],project[:description]]
|
22
|
+
t << [project[:name], project[:runtime] ,project[:framework], project[:repositoryType], project[:gitUrl],project[:description]]
|
23
23
|
end
|
24
24
|
end
|
25
25
|
display projects_table
|
data/lib/cli/version.rb
CHANGED
metadata
CHANGED