jdc 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1277 -24
- data/Rakefile +13 -0
- data/bin/jdc +12 -2
- data/lib/admin/README.md +15 -0
- data/lib/admin/curl.rb +60 -0
- data/lib/admin/guid.rb +89 -0
- data/lib/admin/plugin.rb +6 -0
- data/lib/admin/service_auth_token.rb +94 -0
- data/lib/admin/service_broker/add.rb +47 -0
- data/lib/admin/service_broker/service_brokers.rb +24 -0
- data/lib/admin/set_quota.rb +44 -0
- data/lib/console/README.md +8 -0
- data/lib/console/console.rb +187 -0
- data/lib/console/plugin.rb +33 -0
- data/lib/jdc/cli/app/app.rb +43 -0
- data/lib/jdc/cli/app/apps.rb +87 -0
- data/lib/jdc/cli/app/base.rb +72 -0
- data/lib/jdc/cli/app/delete.rb +95 -0
- data/lib/jdc/cli/app/deprecated.rb +11 -0
- data/lib/jdc/cli/app/env.rb +78 -0
- data/lib/jdc/cli/app/events.rb +45 -0
- data/lib/jdc/cli/app/files.rb +137 -0
- data/lib/jdc/cli/app/health.rb +26 -0
- data/lib/jdc/cli/app/instances.rb +53 -0
- data/lib/jdc/cli/app/logs.rb +76 -0
- data/lib/jdc/cli/app/push/create.rb +108 -0
- data/lib/jdc/cli/app/push/interactions.rb +86 -0
- data/lib/jdc/cli/app/push/sync.rb +57 -0
- data/lib/jdc/cli/app/push.rb +103 -0
- data/lib/jdc/cli/app/rename.rb +35 -0
- data/lib/jdc/cli/app/restart.rb +31 -0
- data/lib/jdc/cli/app/scale.rb +63 -0
- data/lib/jdc/cli/app/start.rb +161 -0
- data/lib/jdc/cli/app/stats.rb +67 -0
- data/lib/jdc/cli/app/stop.rb +27 -0
- data/lib/jdc/cli/domain/base.rb +9 -0
- data/lib/jdc/cli/domain/domains.rb +40 -0
- data/lib/jdc/cli/domain/map.rb +55 -0
- data/lib/jdc/cli/domain/unmap.rb +56 -0
- data/lib/jdc/cli/help.rb +15 -0
- data/lib/jdc/cli/interactive.rb +105 -0
- data/lib/jdc/cli/login_requirements.rb +15 -0
- data/lib/jdc/cli/organization/base.rb +14 -0
- data/lib/jdc/cli/organization/create.rb +37 -0
- data/lib/jdc/cli/organization/delete.rb +63 -0
- data/lib/jdc/cli/organization/org.rb +45 -0
- data/lib/jdc/cli/organization/orgs.rb +30 -0
- data/lib/jdc/cli/organization/rename.rb +37 -0
- data/lib/jdc/cli/populators/base.rb +16 -0
- data/lib/jdc/cli/populators/organization.rb +32 -0
- data/lib/jdc/cli/populators/populator_methods.rb +64 -0
- data/lib/jdc/cli/populators/space.rb +33 -0
- data/lib/jdc/cli/populators/target.rb +13 -0
- data/lib/jdc/cli/route/base.rb +9 -0
- data/lib/jdc/cli/route/delete.rb +28 -0
- data/lib/jdc/cli/route/map.rb +68 -0
- data/lib/jdc/cli/route/routes.rb +26 -0
- data/lib/jdc/cli/route/unmap.rb +56 -0
- data/lib/jdc/cli/service/base.rb +9 -0
- data/lib/jdc/cli/service/bind.rb +44 -0
- data/lib/jdc/cli/service/create.rb +159 -0
- data/lib/jdc/cli/service/delete.rb +83 -0
- data/lib/jdc/cli/service/rename.rb +36 -0
- data/lib/jdc/cli/service/service.rb +42 -0
- data/lib/jdc/cli/service/service_instance_helper.rb +99 -0
- data/lib/jdc/cli/service/services.rb +111 -0
- data/lib/jdc/cli/service/unbind.rb +37 -0
- data/lib/jdc/cli/space/base.rb +29 -0
- data/lib/jdc/cli/space/create.rb +67 -0
- data/lib/jdc/cli/space/delete.rb +56 -0
- data/lib/jdc/cli/space/rename.rb +38 -0
- data/lib/jdc/cli/space/space.rb +66 -0
- data/lib/jdc/cli/space/spaces.rb +57 -0
- data/lib/jdc/cli/space/switch.rb +19 -0
- data/lib/jdc/cli/start/base.rb +41 -0
- data/lib/jdc/cli/start/colors.rb +13 -0
- data/lib/jdc/cli/start/target.rb +50 -0
- data/lib/jdc/cli/start/target_prettifier.rb +17 -0
- data/lib/jdc/cli/start/targets.rb +16 -0
- data/lib/jdc/cli/user/base.rb +30 -0
- data/lib/jdc/cli/user/create.rb +52 -0
- data/lib/jdc/cli/user/passwd.rb +37 -0
- data/lib/jdc/cli/user/register.rb +43 -0
- data/lib/jdc/cli/user/users.rb +32 -0
- data/lib/jdc/cli.rb +544 -0
- data/lib/jdc/constants.rb +11 -0
- data/lib/jdc/errors.rb +19 -0
- data/lib/jdc/object_extensions.rb +15 -0
- data/lib/jdc/plugin.rb +56 -0
- data/lib/jdc/spacing.rb +89 -0
- data/lib/jdc/spec_helper.rb +1 -0
- data/lib/jdc/test_support.rb +6 -0
- data/lib/jdc/version.rb +3 -0
- data/lib/jdc.rb +15 -2
- data/lib/manifests/errors.rb +35 -0
- data/lib/manifests/loader/builder.rb +39 -0
- data/lib/manifests/loader/normalizer.rb +145 -0
- data/lib/manifests/loader/resolver.rb +79 -0
- data/lib/manifests/loader.rb +31 -0
- data/lib/manifests/manifests.rb +344 -0
- data/lib/manifests/plugin.rb +140 -0
- data/lib/micro/README.md +9 -0
- data/lib/micro/errors.rb +4 -0
- data/lib/{jdc → micro}/micro.rb +15 -15
- data/lib/micro/plugin.rb +197 -0
- data/lib/micro/switcher/base.rb +79 -0
- data/lib/{jdc/micro → micro}/switcher/darwin.rb +5 -3
- data/lib/{jdc/micro → micro}/switcher/dummy.rb +1 -1
- data/lib/micro/switcher/linux.rb +16 -0
- data/lib/{jdc/micro → micro}/switcher/windows.rb +5 -5
- data/lib/{jdc/micro → micro}/vmrun.rb +26 -19
- data/lib/tasks/gem_release.rake +42 -0
- data/lib/tunnel/README.md +29 -0
- data/{config → lib/tunnel/config}/clients.yml +2 -2
- data/lib/tunnel/helper-app/Gemfile +10 -0
- data/lib/tunnel/helper-app/Gemfile.lock +48 -0
- data/{caldecott_helper → lib/tunnel/helper-app}/server.rb +5 -5
- data/lib/tunnel/plugin.rb +183 -0
- data/lib/tunnel/tunnel.rb +295 -0
- metadata +319 -89
- data/README.md +0 -102
- data/config/micro/paths.yml +0 -22
- data/config/micro/refresh_ip.rb +0 -20
- data/lib/cli/commands/admin.rb +0 -58
- data/lib/cli/commands/apps.rb +0 -1129
- data/lib/cli/commands/base.rb +0 -228
- data/lib/cli/commands/manifest.rb +0 -56
- data/lib/cli/commands/micro.rb +0 -115
- data/lib/cli/commands/misc.rb +0 -126
- data/lib/cli/commands/services.rb +0 -178
- data/lib/cli/commands/user.rb +0 -14
- data/lib/cli/config.rb +0 -173
- data/lib/cli/console_helper.rb +0 -170
- data/lib/cli/core_ext.rb +0 -122
- data/lib/cli/errors.rb +0 -19
- data/lib/cli/frameworks.rb +0 -265
- data/lib/cli/manifest_helper.rb +0 -302
- data/lib/cli/runner.rb +0 -505
- data/lib/cli/services_helper.rb +0 -84
- data/lib/cli/tunnel_helper.rb +0 -332
- data/lib/cli/usage.rb +0 -86
- data/lib/cli/version.rb +0 -7
- data/lib/cli/zip_util.rb +0 -77
- data/lib/cli.rb +0 -53
- data/lib/jdc/client.rb +0 -457
- data/lib/jdc/const.rb +0 -25
- data/lib/jdc/micro/switcher/base.rb +0 -97
- data/lib/jdc/micro/switcher/linux.rb +0 -16
- data/lib/jdc/signature/version.rb +0 -27
- data/lib/jdc/signer.rb +0 -13
- data/lib/jdc/timer.rb +0 -12
metadata
CHANGED
@@ -1,170 +1,401 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jdc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- Jing Dong
|
8
|
+
- Jing Dong Foundry Team
|
9
|
+
- jae
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2013-
|
13
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
requirement: &
|
16
|
+
name: addressable
|
17
|
+
requirement: &9373700 !ruby/object:Gem::Requirement
|
17
18
|
none: false
|
18
19
|
requirements:
|
19
|
-
- -
|
20
|
+
- - ~>
|
20
21
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
22
|
+
version: '2.2'
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
+
version_requirements: *9373700
|
25
26
|
- !ruby/object:Gem::Dependency
|
26
|
-
name:
|
27
|
-
requirement: &
|
27
|
+
name: caldecott-client
|
28
|
+
requirement: &9373000 !ruby/object:Gem::Requirement
|
28
29
|
none: false
|
29
30
|
requirements:
|
30
31
|
- - ~>
|
31
32
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
33
|
+
version: 0.0.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *9373000
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: jfoundry
|
39
|
+
requirement: &9372320 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - =
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 0.1.0
|
33
45
|
type: :runtime
|
34
46
|
prerelease: false
|
35
|
-
version_requirements: *
|
47
|
+
version_requirements: *9372320
|
36
48
|
- !ruby/object:Gem::Dependency
|
37
49
|
name: interact
|
38
|
-
requirement: &
|
50
|
+
requirement: &9371560 !ruby/object:Gem::Requirement
|
39
51
|
none: false
|
40
52
|
requirements:
|
41
53
|
- - ~>
|
42
54
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.
|
55
|
+
version: '0.5'
|
44
56
|
type: :runtime
|
45
57
|
prerelease: false
|
46
|
-
version_requirements: *
|
58
|
+
version_requirements: *9371560
|
47
59
|
- !ruby/object:Gem::Dependency
|
48
60
|
name: json_pure
|
49
|
-
requirement: &
|
61
|
+
requirement: &9370140 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ~>
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '1.6'
|
67
|
+
type: :runtime
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *9370140
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: mothership
|
72
|
+
requirement: &9369600 !ruby/object:Gem::Requirement
|
50
73
|
none: false
|
51
74
|
requirements:
|
52
75
|
- - ! '>='
|
53
76
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
77
|
+
version: 0.5.1
|
55
78
|
- - <
|
56
79
|
- !ruby/object:Gem::Version
|
57
|
-
version: 1.
|
80
|
+
version: '1.0'
|
58
81
|
type: :runtime
|
59
82
|
prerelease: false
|
60
|
-
version_requirements: *
|
83
|
+
version_requirements: *9369600
|
61
84
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
63
|
-
requirement: &
|
85
|
+
name: multi_json
|
86
|
+
requirement: &9368440 !ruby/object:Gem::Requirement
|
64
87
|
none: false
|
65
88
|
requirements:
|
66
89
|
- - ~>
|
67
90
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
91
|
+
version: '1.3'
|
69
92
|
type: :runtime
|
70
93
|
prerelease: false
|
71
|
-
version_requirements: *
|
94
|
+
version_requirements: *9368440
|
72
95
|
- !ruby/object:Gem::Dependency
|
73
96
|
name: rest-client
|
74
|
-
requirement: &
|
97
|
+
requirement: &9367260 !ruby/object:Gem::Requirement
|
75
98
|
none: false
|
76
99
|
requirements:
|
77
|
-
- -
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: 1.6.1
|
80
|
-
- - <
|
100
|
+
- - ~>
|
81
101
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.
|
102
|
+
version: '1.6'
|
83
103
|
type: :runtime
|
84
104
|
prerelease: false
|
85
|
-
version_requirements: *
|
105
|
+
version_requirements: *9367260
|
86
106
|
- !ruby/object:Gem::Dependency
|
87
|
-
name:
|
88
|
-
requirement: &
|
107
|
+
name: uuidtools
|
108
|
+
requirement: &9365740 !ruby/object:Gem::Requirement
|
89
109
|
none: false
|
90
110
|
requirements:
|
91
111
|
- - ~>
|
92
112
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
113
|
+
version: '2.1'
|
94
114
|
type: :runtime
|
95
115
|
prerelease: false
|
96
|
-
version_requirements: *
|
116
|
+
version_requirements: *9365740
|
97
117
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
99
|
-
requirement: &
|
118
|
+
name: blue-shell
|
119
|
+
requirement: &9364360 !ruby/object:Gem::Requirement
|
120
|
+
none: false
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.2.1
|
125
|
+
type: :development
|
126
|
+
prerelease: false
|
127
|
+
version_requirements: *9364360
|
128
|
+
- !ruby/object:Gem::Dependency
|
129
|
+
name: factory_girl
|
130
|
+
requirement: &9363620 !ruby/object:Gem::Requirement
|
131
|
+
none: false
|
132
|
+
requirements:
|
133
|
+
- - ! '>='
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
type: :development
|
137
|
+
prerelease: false
|
138
|
+
version_requirements: *9363620
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: fakefs
|
141
|
+
requirement: &9362080 !ruby/object:Gem::Requirement
|
100
142
|
none: false
|
101
143
|
requirements:
|
102
144
|
- - ~>
|
103
145
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
105
|
-
type: :
|
146
|
+
version: 0.4.2
|
147
|
+
type: :development
|
106
148
|
prerelease: false
|
107
|
-
version_requirements: *
|
149
|
+
version_requirements: *9362080
|
108
150
|
- !ruby/object:Gem::Dependency
|
109
|
-
name:
|
110
|
-
requirement: &
|
151
|
+
name: ffaker
|
152
|
+
requirement: &9359980 !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - =
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '1.15'
|
158
|
+
type: :development
|
159
|
+
prerelease: false
|
160
|
+
version_requirements: *9359980
|
161
|
+
- !ruby/object:Gem::Dependency
|
162
|
+
name: gem-release
|
163
|
+
requirement: &9359280 !ruby/object:Gem::Requirement
|
164
|
+
none: false
|
165
|
+
requirements:
|
166
|
+
- - ! '>='
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
type: :development
|
170
|
+
prerelease: false
|
171
|
+
version_requirements: *9359280
|
172
|
+
- !ruby/object:Gem::Dependency
|
173
|
+
name: rake
|
174
|
+
requirement: &9358280 !ruby/object:Gem::Requirement
|
111
175
|
none: false
|
112
176
|
requirements:
|
113
177
|
- - ~>
|
114
178
|
- !ruby/object:Gem::Version
|
115
|
-
version:
|
116
|
-
type: :
|
179
|
+
version: '0.9'
|
180
|
+
type: :development
|
117
181
|
prerelease: false
|
118
|
-
version_requirements: *
|
119
|
-
|
120
|
-
|
182
|
+
version_requirements: *9358280
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
name: rspec
|
185
|
+
requirement: &9339120 !ruby/object:Gem::Requirement
|
186
|
+
none: false
|
187
|
+
requirements:
|
188
|
+
- - ~>
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: '2.14'
|
191
|
+
type: :development
|
192
|
+
prerelease: false
|
193
|
+
version_requirements: *9339120
|
194
|
+
- !ruby/object:Gem::Dependency
|
195
|
+
name: rspec-instafail
|
196
|
+
requirement: &9337920 !ruby/object:Gem::Requirement
|
197
|
+
none: false
|
198
|
+
requirements:
|
199
|
+
- - ~>
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 0.2.4
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: *9337920
|
205
|
+
- !ruby/object:Gem::Dependency
|
206
|
+
name: webmock
|
207
|
+
requirement: &9336780 !ruby/object:Gem::Requirement
|
208
|
+
none: false
|
209
|
+
requirements:
|
210
|
+
- - ~>
|
211
|
+
- !ruby/object:Gem::Version
|
212
|
+
version: '1.9'
|
213
|
+
type: :development
|
214
|
+
prerelease: false
|
215
|
+
version_requirements: *9336780
|
216
|
+
- !ruby/object:Gem::Dependency
|
217
|
+
name: httpclient
|
218
|
+
requirement: &9335700 !ruby/object:Gem::Requirement
|
219
|
+
none: false
|
220
|
+
requirements:
|
221
|
+
- - ~>
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '2.3'
|
224
|
+
type: :development
|
225
|
+
prerelease: false
|
226
|
+
version_requirements: *9335700
|
227
|
+
- !ruby/object:Gem::Dependency
|
228
|
+
name: yajl-ruby
|
229
|
+
requirement: &9332260 !ruby/object:Gem::Requirement
|
230
|
+
none: false
|
231
|
+
requirements:
|
232
|
+
- - ! '>='
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
version: '0'
|
235
|
+
type: :development
|
236
|
+
prerelease: false
|
237
|
+
version_requirements: *9332260
|
238
|
+
- !ruby/object:Gem::Dependency
|
239
|
+
name: nats
|
240
|
+
requirement: &9326660 !ruby/object:Gem::Requirement
|
241
|
+
none: false
|
242
|
+
requirements:
|
243
|
+
- - ! '>='
|
244
|
+
- !ruby/object:Gem::Version
|
245
|
+
version: '0'
|
246
|
+
type: :development
|
247
|
+
prerelease: false
|
248
|
+
version_requirements: *9326660
|
249
|
+
- !ruby/object:Gem::Dependency
|
250
|
+
name: typhoeus
|
251
|
+
requirement: &9325800 !ruby/object:Gem::Requirement
|
252
|
+
none: false
|
253
|
+
requirements:
|
254
|
+
- - ! '>='
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
version: '0'
|
257
|
+
type: :development
|
258
|
+
prerelease: false
|
259
|
+
version_requirements: *9325800
|
260
|
+
- !ruby/object:Gem::Dependency
|
261
|
+
name: anchorman
|
262
|
+
requirement: &9322560 !ruby/object:Gem::Requirement
|
263
|
+
none: false
|
264
|
+
requirements:
|
265
|
+
- - ! '>='
|
266
|
+
- !ruby/object:Gem::Version
|
267
|
+
version: '0'
|
268
|
+
type: :development
|
269
|
+
prerelease: false
|
270
|
+
version_requirements: *9322560
|
271
|
+
description:
|
272
|
+
email:
|
273
|
+
- jae@jd.com
|
121
274
|
executables:
|
122
275
|
- jdc
|
123
276
|
extensions: []
|
124
277
|
extra_rdoc_files: []
|
125
278
|
files:
|
126
|
-
- README.md
|
127
279
|
- LICENSE
|
128
|
-
-
|
129
|
-
-
|
130
|
-
- lib/
|
280
|
+
- Rakefile
|
281
|
+
- lib/admin/curl.rb
|
282
|
+
- lib/admin/guid.rb
|
283
|
+
- lib/admin/service_broker/add.rb
|
284
|
+
- lib/admin/service_broker/service_brokers.rb
|
285
|
+
- lib/admin/README.md
|
286
|
+
- lib/admin/service_auth_token.rb
|
287
|
+
- lib/admin/plugin.rb
|
288
|
+
- lib/admin/set_quota.rb
|
289
|
+
- lib/manifests/manifests.rb
|
290
|
+
- lib/manifests/errors.rb
|
291
|
+
- lib/manifests/loader/normalizer.rb
|
292
|
+
- lib/manifests/loader/resolver.rb
|
293
|
+
- lib/manifests/loader/builder.rb
|
294
|
+
- lib/manifests/plugin.rb
|
295
|
+
- lib/manifests/loader.rb
|
296
|
+
- lib/micro/switcher/dummy.rb
|
297
|
+
- lib/micro/switcher/base.rb
|
298
|
+
- lib/micro/switcher/linux.rb
|
299
|
+
- lib/micro/switcher/darwin.rb
|
300
|
+
- lib/micro/switcher/windows.rb
|
301
|
+
- lib/micro/vmrun.rb
|
302
|
+
- lib/micro/micro.rb
|
303
|
+
- lib/micro/errors.rb
|
304
|
+
- lib/micro/README.md
|
305
|
+
- lib/micro/plugin.rb
|
131
306
|
- lib/jdc.rb
|
132
|
-
- lib/
|
133
|
-
- lib/
|
134
|
-
- lib/
|
135
|
-
- lib/
|
136
|
-
- lib/
|
137
|
-
- lib/
|
138
|
-
- lib/
|
139
|
-
- lib/
|
140
|
-
- lib/jdc/
|
141
|
-
- lib/jdc/
|
142
|
-
- lib/jdc/
|
143
|
-
- lib/jdc/
|
144
|
-
- lib/cli/
|
145
|
-
- lib/cli/
|
146
|
-
- lib/cli/
|
147
|
-
- lib/cli/
|
148
|
-
- lib/cli/
|
149
|
-
- lib/cli/
|
150
|
-
- lib/cli/
|
151
|
-
- lib/cli/
|
152
|
-
- lib/cli/
|
153
|
-
- lib/cli/
|
154
|
-
- lib/cli/
|
155
|
-
- lib/cli/
|
156
|
-
- lib/cli/
|
157
|
-
- lib/cli/
|
158
|
-
- lib/cli/
|
159
|
-
- lib/cli/
|
160
|
-
- lib/cli/
|
161
|
-
- lib/cli/
|
162
|
-
- lib/cli/
|
163
|
-
- lib/cli/
|
164
|
-
-
|
165
|
-
-
|
166
|
-
-
|
167
|
-
|
307
|
+
- lib/tasks/gem_release.rake
|
308
|
+
- lib/tunnel/tunnel.rb
|
309
|
+
- lib/tunnel/helper-app/server.rb
|
310
|
+
- lib/tunnel/helper-app/Gemfile.lock
|
311
|
+
- lib/tunnel/helper-app/Gemfile
|
312
|
+
- lib/tunnel/README.md
|
313
|
+
- lib/tunnel/plugin.rb
|
314
|
+
- lib/tunnel/config/clients.yml
|
315
|
+
- lib/jdc/cli/interactive.rb
|
316
|
+
- lib/jdc/cli/domain/base.rb
|
317
|
+
- lib/jdc/cli/domain/unmap.rb
|
318
|
+
- lib/jdc/cli/domain/domains.rb
|
319
|
+
- lib/jdc/cli/domain/map.rb
|
320
|
+
- lib/jdc/cli/start/targets.rb
|
321
|
+
- lib/jdc/cli/start/colors.rb
|
322
|
+
- lib/jdc/cli/start/base.rb
|
323
|
+
- lib/jdc/cli/start/target_prettifier.rb
|
324
|
+
- lib/jdc/cli/start/target.rb
|
325
|
+
- lib/jdc/cli/organization/create.rb
|
326
|
+
- lib/jdc/cli/organization/orgs.rb
|
327
|
+
- lib/jdc/cli/organization/org.rb
|
328
|
+
- lib/jdc/cli/organization/delete.rb
|
329
|
+
- lib/jdc/cli/organization/base.rb
|
330
|
+
- lib/jdc/cli/organization/rename.rb
|
331
|
+
- lib/jdc/cli/app/logs.rb
|
332
|
+
- lib/jdc/cli/app/push.rb
|
333
|
+
- lib/jdc/cli/app/app.rb
|
334
|
+
- lib/jdc/cli/app/files.rb
|
335
|
+
- lib/jdc/cli/app/push/create.rb
|
336
|
+
- lib/jdc/cli/app/push/interactions.rb
|
337
|
+
- lib/jdc/cli/app/push/sync.rb
|
338
|
+
- lib/jdc/cli/app/restart.rb
|
339
|
+
- lib/jdc/cli/app/scale.rb
|
340
|
+
- lib/jdc/cli/app/events.rb
|
341
|
+
- lib/jdc/cli/app/env.rb
|
342
|
+
- lib/jdc/cli/app/stats.rb
|
343
|
+
- lib/jdc/cli/app/health.rb
|
344
|
+
- lib/jdc/cli/app/start.rb
|
345
|
+
- lib/jdc/cli/app/stop.rb
|
346
|
+
- lib/jdc/cli/app/apps.rb
|
347
|
+
- lib/jdc/cli/app/delete.rb
|
348
|
+
- lib/jdc/cli/app/base.rb
|
349
|
+
- lib/jdc/cli/app/deprecated.rb
|
350
|
+
- lib/jdc/cli/app/instances.rb
|
351
|
+
- lib/jdc/cli/app/rename.rb
|
352
|
+
- lib/jdc/cli/login_requirements.rb
|
353
|
+
- lib/jdc/cli/route/routes.rb
|
354
|
+
- lib/jdc/cli/route/delete.rb
|
355
|
+
- lib/jdc/cli/route/base.rb
|
356
|
+
- lib/jdc/cli/route/unmap.rb
|
357
|
+
- lib/jdc/cli/route/map.rb
|
358
|
+
- lib/jdc/cli/user/create.rb
|
359
|
+
- lib/jdc/cli/user/register.rb
|
360
|
+
- lib/jdc/cli/user/users.rb
|
361
|
+
- lib/jdc/cli/user/base.rb
|
362
|
+
- lib/jdc/cli/user/passwd.rb
|
363
|
+
- lib/jdc/cli/help.rb
|
364
|
+
- lib/jdc/cli/service/unbind.rb
|
365
|
+
- lib/jdc/cli/service/create.rb
|
366
|
+
- lib/jdc/cli/service/services.rb
|
367
|
+
- lib/jdc/cli/service/service.rb
|
368
|
+
- lib/jdc/cli/service/service_instance_helper.rb
|
369
|
+
- lib/jdc/cli/service/bind.rb
|
370
|
+
- lib/jdc/cli/service/delete.rb
|
371
|
+
- lib/jdc/cli/service/base.rb
|
372
|
+
- lib/jdc/cli/service/rename.rb
|
373
|
+
- lib/jdc/cli/populators/space.rb
|
374
|
+
- lib/jdc/cli/populators/base.rb
|
375
|
+
- lib/jdc/cli/populators/target.rb
|
376
|
+
- lib/jdc/cli/populators/populator_methods.rb
|
377
|
+
- lib/jdc/cli/populators/organization.rb
|
378
|
+
- lib/jdc/cli/space/create.rb
|
379
|
+
- lib/jdc/cli/space/switch.rb
|
380
|
+
- lib/jdc/cli/space/spaces.rb
|
381
|
+
- lib/jdc/cli/space/space.rb
|
382
|
+
- lib/jdc/cli/space/delete.rb
|
383
|
+
- lib/jdc/cli/space/base.rb
|
384
|
+
- lib/jdc/cli/space/rename.rb
|
385
|
+
- lib/jdc/spacing.rb
|
386
|
+
- lib/jdc/errors.rb
|
387
|
+
- lib/jdc/spec_helper.rb
|
388
|
+
- lib/jdc/test_support.rb
|
389
|
+
- lib/jdc/object_extensions.rb
|
390
|
+
- lib/jdc/constants.rb
|
391
|
+
- lib/jdc/plugin.rb
|
392
|
+
- lib/jdc/cli.rb
|
393
|
+
- lib/jdc/version.rb
|
394
|
+
- lib/console/console.rb
|
395
|
+
- lib/console/README.md
|
396
|
+
- lib/console/plugin.rb
|
397
|
+
- bin/jdc
|
398
|
+
homepage: https://code.jd.com/jae_m/jdc
|
168
399
|
licenses:
|
169
400
|
- Apache 2.0
|
170
401
|
post_install_message:
|
@@ -184,10 +415,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
415
|
- !ruby/object:Gem::Version
|
185
416
|
version: '0'
|
186
417
|
requirements: []
|
187
|
-
rubyforge_project:
|
418
|
+
rubyforge_project: jdc
|
188
419
|
rubygems_version: 1.8.11
|
189
420
|
signing_key:
|
190
421
|
specification_version: 3
|
191
|
-
summary:
|
422
|
+
summary: Friendly command-line interface for Jing Dong Foundry.
|
192
423
|
test_files: []
|
193
|
-
has_rdoc:
|
data/README.md
DELETED
@@ -1,102 +0,0 @@
|
|
1
|
-
#JDC
|
2
|
-
|
3
|
-
The JingDong Cloud CLI. This is the command line interface to JingDong's Application Platform
|
4
|
-
|
5
|
-
_Copyright 2013, JingDong. Please see the License file.
|
6
|
-
|
7
|
-
##Installation
|
8
|
-
|
9
|
-
You can install the JDC for Ruby with rubygems
|
10
|
-
|
11
|
-
$gem install jdc
|
12
|
-
$jdc -v
|
13
|
-
jdc 0.1.0
|
14
|
-
|
15
|
-
If you are using Bundler, we recommend that you express a major version dependency:
|
16
|
-
|
17
|
-
gem 'jdc', '~> 0.1.0'
|
18
|
-
|
19
|
-
##Development
|
20
|
-
|
21
|
-
$git clone https://github.com/jingdong-app-engine/jdc.git
|
22
|
-
$cd jdc
|
23
|
-
$bundle install
|
24
|
-
|
25
|
-
##Basic Configuration
|
26
|
-
|
27
|
-
You need to provide your JingDong security credentials
|
28
|
-
|
29
|
-
You can also specify these values via `ENV`:
|
30
|
-
|
31
|
-
export ACCESS_KEY='...'
|
32
|
-
export SECRET_KEY='...'
|
33
|
-
|
34
|
-
##Usage
|
35
|
-
|
36
|
-
Usage: jdc [options] command [<args>] [command_options]
|
37
|
-
Try 'jdc help [command]' or 'jdc help options' for more information.
|
38
|
-
|
39
|
-
Currently available jdc commands are:
|
40
|
-
|
41
|
-
Getting Started
|
42
|
-
target [url] Reports current target or sets a new target
|
43
|
-
info System and account information
|
44
|
-
|
45
|
-
Applications
|
46
|
-
user Display current user account information
|
47
|
-
apps List deployed applications
|
48
|
-
|
49
|
-
Application Creation
|
50
|
-
push [appname] Create, push, map, and start a new application
|
51
|
-
push [appname] --path Push application from specified path
|
52
|
-
push [appname] --url Set the url for the application
|
53
|
-
push [appname] --instances <N> Set the expected number <N> of instances
|
54
|
-
push [appname] --mem M Set the memory reservation for the application
|
55
|
-
push [appname] --runtime RUNTIME Set the runtime to use for the application
|
56
|
-
push [appname] --debug [MODE] Push application and start in a debug mode
|
57
|
-
push [appname] --no-start Do not auto-start the application
|
58
|
-
|
59
|
-
Application Operations
|
60
|
-
start <appname> [--debug [MODE]] Start the application
|
61
|
-
stop <appname> Stop the application
|
62
|
-
restart <appname> [--debug [MODE]] Restart the application
|
63
|
-
delete <appname> Delete the application
|
64
|
-
|
65
|
-
Application Updates
|
66
|
-
update <appname> [--path,--debug [MODE]] Update the application bits
|
67
|
-
mem <appname> [memsize] Update the memory reservation for an application
|
68
|
-
map <appname> <url> Register the application to the url
|
69
|
-
unmap <appname> <url> Unregister the application from the url
|
70
|
-
instances <appname> <num|delta> Scale the application instances up or down
|
71
|
-
|
72
|
-
Application Information
|
73
|
-
crashes <appname> List recent application crashes
|
74
|
-
crashlogs <appname> Display log information for crashed applications
|
75
|
-
logs <appname> [--all] Display log information for the application
|
76
|
-
files <appname> [path] [--all] Display directory listing or file download for [path]
|
77
|
-
stats <appname> Display resource usage for the application
|
78
|
-
instances <appname> List application instances
|
79
|
-
|
80
|
-
Application Environment
|
81
|
-
env <appname> List application environment variables
|
82
|
-
env-add <appname> <variable[=]value> Add an environment variable to an application
|
83
|
-
env-del <appname> <variable> Delete an environment variable to an application
|
84
|
-
|
85
|
-
System
|
86
|
-
runtimes Display the supported runtimes of the target system
|
87
|
-
frameworks Display the recognized frameworks of the target system
|
88
|
-
|
89
|
-
Misc
|
90
|
-
aliases List aliases
|
91
|
-
alias <alias[=]command> Create an alias for a command
|
92
|
-
unalias <alias> Remove an alias
|
93
|
-
|
94
|
-
Help
|
95
|
-
help [command] Get general help or help on a specific command
|
96
|
-
help options Get help on available options
|
97
|
-
|
98
|
-
##Simple Story (for Ruby apps)
|
99
|
-
|
100
|
-
jdc target api.jd-app.com
|
101
|
-
jdc push ruby_app
|
102
|
-
|
data/config/micro/paths.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
darwin:
|
2
|
-
vmrun:
|
3
|
-
- "/Applications/VMware Fusion.app/Contents/Library/"
|
4
|
-
- "/Applications/Fusion.app/Contents/Library/"
|
5
|
-
vmx:
|
6
|
-
- "~/Documents/Virtual Machines.localized/"
|
7
|
-
- "~/Documents/Virtual Machines/"
|
8
|
-
- "~/Desktop/"
|
9
|
-
|
10
|
-
linux:
|
11
|
-
vmrun:
|
12
|
-
- "/usr/bin/"
|
13
|
-
vmx:
|
14
|
-
- "~/"
|
15
|
-
|
16
|
-
windows:
|
17
|
-
vmrun:
|
18
|
-
- "c:\\Program Files (x86)\\"
|
19
|
-
- "c:\\Program Files\\"
|
20
|
-
vmx:
|
21
|
-
- "~\\Documents\\"
|
22
|
-
- "~\\Desktop\\"
|
data/config/micro/refresh_ip.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
#!/var/vcap/bosh/bin/ruby
|
2
|
-
require 'socket'
|
3
|
-
|
4
|
-
A_ROOT_SERVER = '198.41.0.4'
|
5
|
-
|
6
|
-
begin
|
7
|
-
retries ||= 0
|
8
|
-
route ||= A_ROOT_SERVER
|
9
|
-
orig, Socket.do_not_reverse_lookup = Socket.do_not_reverse_lookup, true
|
10
|
-
ip_address = UDPSocket.open {|s| s.connect(route, 1); s.addr.last }
|
11
|
-
rescue Errno::ENETUNREACH
|
12
|
-
# happens on boot when dhcp hasn't completed when we get here
|
13
|
-
sleep 3
|
14
|
-
retries += 1
|
15
|
-
retry if retries < 10
|
16
|
-
ensure
|
17
|
-
Socket.do_not_reverse_lookup = orig
|
18
|
-
end
|
19
|
-
|
20
|
-
File.open("/tmp/ip.txt", 'w') { |file| file.write(ip_address) }
|