aptly_cli 0.1.4 → 0.1.5
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.
- checksums.yaml +8 -8
- data/README.md +426 -5
- data/bin/aptly-cli +1 -1
- data/lib/aptly_cli/version.rb +1 -1
- data/lib/aptly_load.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmY4ZmJlZTliNWJkZGI5NjAyNThkMTdmNTVjMGI1OTIwM2Q3YzBmZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGQ0ZTdjNjliZDlkZDdkNTQ3YzFiNjQ0NzM3NTM2YzkzMDM1MTFlMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzZmMWI2N2ViNGRlODY0MzVhMjI0MTdmMTJlNTQ0ODlmYzc1YjFkZGM2YmQ1
|
10
|
+
NzBkMDUzYTYzOWQ4ODFmYzYxMzg4NjdlODFlZTc0MTJhZWY5NDQ5ZjM3NTJj
|
11
|
+
YWZjM2NmMWE4MDAyNDM4NzQ4YjQ1MGFiZTI0YjcxNjJkOWJmZmE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGM2NGM1NWVlYjUxZmQxZTQ4Njc0OTlhZWY5MGZjYWM5ZWJiYTk0YzY3N2Q3
|
14
|
+
NWE2YmYxM2QyNDNhMjcwZGRkOGRhNjkzMmRmNDA5NmNiZmFkOWRmMjFlZDA5
|
15
|
+
YmE5YjQ1N2IzNTA4OTk0MDkzN2U2NzE2MDg0ZGJiMDUxOTI3ZWY=
|
data/README.md
CHANGED
@@ -18,9 +18,38 @@ And then execute:
|
|
18
18
|
Or install it yourself as:
|
19
19
|
|
20
20
|
$ gem install aptly_cli
|
21
|
+
|
22
|
+
|
23
|
+
Create a configuration file with aptly server and port, /etc/aptly-cli.conf:
|
24
|
+
|
25
|
+
---
|
26
|
+
:server: 127.0.0.1
|
27
|
+
:port: 8082
|
28
|
+
|
29
|
+
If a configuration file is not found the defaults in the example configuration file above will be used
|
21
30
|
|
22
31
|
## Usage
|
23
32
|
|
33
|
+
### aptly-cli version
|
34
|
+
|
35
|
+
NAME:
|
36
|
+
|
37
|
+
version
|
38
|
+
|
39
|
+
SYNOPSIS:
|
40
|
+
|
41
|
+
aptly-cli version
|
42
|
+
|
43
|
+
DESCRIPTION:
|
44
|
+
|
45
|
+
Display aptly server version
|
46
|
+
|
47
|
+
EXAMPLES:
|
48
|
+
|
49
|
+
# description
|
50
|
+
aptly-cli version
|
51
|
+
|
52
|
+
|
24
53
|
### aptly-cli file_list [options]
|
25
54
|
|
26
55
|
NAME:
|
@@ -133,17 +162,409 @@ List all directories that contain uploaded files
|
|
133
162
|
|
134
163
|
--default_component COMPONENT
|
135
164
|
Default component when publishing from this local repo
|
136
|
-
### aptly-cli package [options]
|
137
165
|
|
138
|
-
|
166
|
+
### aptly-cli repo_delete [options]
|
167
|
+
|
168
|
+
NAME:
|
169
|
+
|
170
|
+
repo_delete
|
171
|
+
|
172
|
+
SYNOPSIS:
|
173
|
+
|
174
|
+
aptly-cli repo_delete [options]
|
175
|
+
|
176
|
+
DESCRIPTION:
|
177
|
+
|
178
|
+
Delete a local repository, requires --name
|
179
|
+
|
180
|
+
EXAMPLES:
|
181
|
+
|
182
|
+
# description
|
183
|
+
aptly-cli repo_delete --name megatronsoftware
|
184
|
+
|
185
|
+
OPTIONS:
|
186
|
+
|
187
|
+
--name NAME
|
188
|
+
Local repository name, required
|
189
|
+
|
190
|
+
--force
|
191
|
+
|
192
|
+
### aptly-cli repo_edit [options]
|
193
|
+
|
194
|
+
NAME:
|
195
|
+
|
196
|
+
repo_edit
|
197
|
+
|
198
|
+
SYNOPSIS:
|
199
|
+
|
200
|
+
aptly-cli repo_edit [options]
|
201
|
+
|
202
|
+
DESCRIPTION:
|
203
|
+
|
204
|
+
Edit a local repository metadata, requires --name
|
205
|
+
|
206
|
+
EXAMPLES:
|
207
|
+
|
208
|
+
# description
|
209
|
+
aptly-cli repo_edit --name megatronsoftware --default_distribution trusty
|
210
|
+
|
211
|
+
OPTIONS:
|
212
|
+
|
213
|
+
--name NAME
|
214
|
+
Local repository name, required
|
215
|
+
|
216
|
+
--comment COMMENT
|
217
|
+
Edit repository comment
|
218
|
+
|
219
|
+
--default_distribution DISTRIBUTION
|
220
|
+
Edit DefaultDistribution for repo
|
221
|
+
|
222
|
+
--default_component COMPONENT
|
223
|
+
Edit DefaultComponent for repo
|
224
|
+
|
225
|
+
### aptly-cli repo_list [options]
|
226
|
+
|
227
|
+
NAME:
|
228
|
+
|
229
|
+
repo_list
|
230
|
+
|
231
|
+
SYNOPSIS:
|
232
|
+
|
233
|
+
aptly-cli repo_list [options]
|
234
|
+
|
235
|
+
DESCRIPTION:
|
236
|
+
|
237
|
+
Show list of currently available local repositories
|
238
|
+
|
239
|
+
EXAMPLES:
|
240
|
+
|
241
|
+
# description
|
242
|
+
aptly-cli repo_list
|
243
|
+
|
244
|
+
|
245
|
+
### aptly-cli repo_package_query [options]
|
246
|
+
|
247
|
+
NAME:
|
248
|
+
|
249
|
+
repo_package_query
|
250
|
+
|
251
|
+
SYNOPSIS:
|
252
|
+
|
253
|
+
aptly-cli repo_package_query [options]
|
254
|
+
|
255
|
+
DESCRIPTION:
|
256
|
+
|
257
|
+
List all packages or search on repo contents, requires --name
|
258
|
+
|
259
|
+
EXAMPLES:
|
260
|
+
|
261
|
+
# description
|
262
|
+
aptly-cli repo_package_query --name megatronsoftware -query geoipupdate
|
263
|
+
|
264
|
+
OPTIONS:
|
265
|
+
|
266
|
+
--name NAME
|
267
|
+
Local repository name, required
|
268
|
+
|
269
|
+
--query QUERY
|
270
|
+
Package to query
|
271
|
+
|
272
|
+
--with_deps
|
273
|
+
Return results with dependencies
|
274
|
+
|
275
|
+
--format FORMAT
|
276
|
+
Format type to return, compact by default. "details" is an option
|
277
|
+
|
278
|
+
### aptly-cli repo_show [options]
|
279
|
+
|
280
|
+
NAME:
|
281
|
+
|
282
|
+
repo_show
|
283
|
+
|
284
|
+
SYNOPSIS:
|
285
|
+
|
286
|
+
aptly-cli repo_show [options]
|
287
|
+
|
288
|
+
DESCRIPTION:
|
289
|
+
|
290
|
+
Returns basic information about local repository, require --name
|
291
|
+
|
292
|
+
EXAMPLES:
|
293
|
+
|
294
|
+
# description
|
295
|
+
aptly-cli repo_show --name megatronsoftware
|
296
|
+
|
297
|
+
OPTIONS:
|
298
|
+
|
299
|
+
--name NAME
|
300
|
+
Local repository name, required
|
301
|
+
|
302
|
+
### aptly-cli repo_upload [options]
|
303
|
+
|
304
|
+
NAME:
|
305
|
+
|
306
|
+
repo_upload
|
307
|
+
|
308
|
+
SYNOPSIS:
|
309
|
+
|
310
|
+
aptly-cli repo_upload [options]
|
311
|
+
|
312
|
+
DESCRIPTION:
|
313
|
+
|
314
|
+
Import packages from files
|
315
|
+
|
316
|
+
EXAMPLES:
|
317
|
+
|
318
|
+
# description
|
319
|
+
aptly-cli repo_upload --name rocksoftware --dir rockpackages --noremove
|
320
|
+
|
321
|
+
OPTIONS:
|
322
|
+
|
323
|
+
--name NAME
|
324
|
+
Local repository name, required
|
325
|
+
|
326
|
+
--dir DIR
|
327
|
+
Directory where packages are stored via File API
|
328
|
+
|
329
|
+
--file FILE
|
330
|
+
Specific file to upload, if not provided the entire directory of files will be uploaded
|
331
|
+
|
332
|
+
--noremove
|
333
|
+
Flag to not remove any files that were uploaded via File API after repo upload
|
334
|
+
|
335
|
+
--forcereplace
|
336
|
+
flag to replace file(s) already in the repo
|
337
|
+
|
338
|
+
### aptly-cli snapshot_create [options]
|
339
|
+
|
340
|
+
NAME:
|
341
|
+
|
342
|
+
snapshot_create
|
139
343
|
|
344
|
+
SYNOPSIS:
|
345
|
+
|
346
|
+
aptly-cli snapshot_create [options]
|
347
|
+
|
348
|
+
DESCRIPTION:
|
349
|
+
|
350
|
+
Create snapshot, require --name
|
351
|
+
|
352
|
+
EXAMPLES:
|
353
|
+
|
354
|
+
# Creating new snapshot megasoftware22-snap from megasoftware22 repo
|
355
|
+
aptly-cli snapshot_create --name megasoftware22-snap --repo meagsoftware22
|
356
|
+
|
357
|
+
OPTIONS:
|
358
|
+
|
359
|
+
--name NAME
|
360
|
+
Name of new snapshot, required
|
361
|
+
|
362
|
+
--repo REPO
|
363
|
+
Name of repo to snapshot
|
364
|
+
|
365
|
+
--description DESCRIPTION
|
366
|
+
Set description for snapshot
|
367
|
+
|
368
|
+
### aptly-cli snapshot_delete [options]
|
369
|
+
|
370
|
+
NAME:
|
371
|
+
|
372
|
+
snapshot_delete
|
373
|
+
|
374
|
+
SYNOPSIS:
|
375
|
+
|
376
|
+
aptly-cli snapshot_delete [options]
|
377
|
+
|
378
|
+
DESCRIPTION:
|
379
|
+
|
380
|
+
Delete snapshot, require --name
|
381
|
+
|
382
|
+
EXAMPLES:
|
383
|
+
|
384
|
+
# Deleting the snapshot megasoftware22
|
385
|
+
aptly-cli snapshot_delete --name megatronsoftware22
|
386
|
+
|
387
|
+
# Deleting the snapshot megasoftware22 with force option
|
388
|
+
aptly-cli snapshot_delete --name megatronsoftware22 --force
|
389
|
+
|
390
|
+
OPTIONS:
|
391
|
+
|
392
|
+
--name NAME
|
393
|
+
Local snapshot name, required
|
394
|
+
|
395
|
+
--force
|
396
|
+
Force
|
397
|
+
|
398
|
+
### aptly-cli snapshot_diff [options]
|
399
|
+
|
400
|
+
NAME:
|
401
|
+
|
402
|
+
snapshot_diff
|
403
|
+
|
404
|
+
SYNOPSIS:
|
405
|
+
|
406
|
+
aptly-cli snapshot_diff [options]
|
407
|
+
|
408
|
+
DESCRIPTION:
|
409
|
+
|
410
|
+
Calculate difference between two snapshots, require --name, require --withsnapshot
|
411
|
+
|
412
|
+
EXAMPLES:
|
413
|
+
|
414
|
+
# Show difference between megatronsoftware and rocksoftware snapshots
|
415
|
+
aptly-cli snapshot_diff --name megatronsoftware --withsnapshot rocksoftware
|
416
|
+
|
417
|
+
OPTIONS:
|
418
|
+
|
419
|
+
--name NAME
|
420
|
+
Local snapshot name (left)
|
421
|
+
|
422
|
+
--withsnapshot WITHSNAPSHOT
|
423
|
+
Snapshot to diff against (right)
|
424
|
+
|
425
|
+
### aptly-cli snapshot_list [options]
|
426
|
+
|
427
|
+
NAME:
|
428
|
+
|
429
|
+
snapshot_list
|
430
|
+
|
431
|
+
SYNOPSIS:
|
432
|
+
|
433
|
+
aptly-cli snapshot_list [options]
|
434
|
+
|
435
|
+
DESCRIPTION:
|
436
|
+
|
437
|
+
Return list of all snapshots created in the system
|
438
|
+
|
439
|
+
EXAMPLES:
|
440
|
+
|
441
|
+
# Return list of all snapshots created in the system
|
442
|
+
aptly-cli snapshot_list
|
443
|
+
|
444
|
+
# Return list sorted by time
|
445
|
+
aptly-cli snapshot_list --sort time
|
446
|
+
|
447
|
+
OPTIONS:
|
448
|
+
|
449
|
+
--sort
|
450
|
+
Set sort by
|
451
|
+
|
452
|
+
### aptly-cli snapshot_search [options]
|
453
|
+
|
454
|
+
NAME:
|
455
|
+
|
456
|
+
snapshot_search
|
457
|
+
|
458
|
+
SYNOPSIS:
|
459
|
+
|
460
|
+
aptly-cli snapshot_search [options]
|
461
|
+
|
462
|
+
DESCRIPTION:
|
463
|
+
|
464
|
+
List all packages in snapshot or perform search
|
465
|
+
|
466
|
+
EXAMPLES:
|
467
|
+
|
468
|
+
# List all packages in snapshot megasoftware22-snap
|
469
|
+
aptly-cli snapshot_search --name megasoftware22-snap
|
470
|
+
|
471
|
+
# List all packages in snapshot megasoftware22-snap with format set to details
|
472
|
+
aptly-cli snapshot_search --name megasoftware22-snap --format details
|
473
|
+
|
474
|
+
# Search for package called nginx in snapshot megasoftware22-snap
|
475
|
+
aptly-cli snapshot_search --name megasoftware22-snap --query nginx
|
476
|
+
|
477
|
+
OPTIONS:
|
478
|
+
|
479
|
+
--name NAME
|
480
|
+
Name of snapshot to search, required
|
481
|
+
|
482
|
+
--query QUERY
|
483
|
+
Specific package to query
|
484
|
+
|
485
|
+
--withdeps
|
486
|
+
Include package dependencies
|
487
|
+
|
488
|
+
--format FORMAT
|
489
|
+
Format the respone of the snapshot search results, compact by default.
|
490
|
+
|
491
|
+
### aptly-cli snapshot_show [options]
|
492
|
+
|
493
|
+
NAME:
|
494
|
+
|
495
|
+
snapshot_show
|
496
|
+
|
497
|
+
SYNOPSIS:
|
498
|
+
|
499
|
+
aptly-cli snapshot_show [options]
|
500
|
+
|
501
|
+
DESCRIPTION:
|
502
|
+
|
503
|
+
Get information about snapshot by name., require --name
|
504
|
+
|
505
|
+
EXAMPLES:
|
506
|
+
|
507
|
+
# Show snapshot information for repo named megatronsoftware
|
508
|
+
aptly-cli snapshot_show --name megatronsoftware
|
509
|
+
|
510
|
+
OPTIONS:
|
511
|
+
|
512
|
+
--name NAME
|
513
|
+
Local snapshot name, required
|
514
|
+
|
515
|
+
### aptly-cli snapshot_update [options]
|
516
|
+
|
517
|
+
NAME:
|
518
|
+
|
519
|
+
snapshot_update
|
520
|
+
|
521
|
+
SYNOPSIS:
|
522
|
+
|
523
|
+
aptly-cli snapshot_update [options]
|
524
|
+
|
525
|
+
DESCRIPTION:
|
526
|
+
|
527
|
+
Update snapshot’s description or name, require --name
|
528
|
+
|
529
|
+
EXAMPLES:
|
530
|
+
|
531
|
+
# Updating the snapshot megasoftware22 to a new name
|
532
|
+
aptly-cli snapshot_update --name megasoftware22 --new_name meagsoftware12-12-13
|
533
|
+
|
534
|
+
OPTIONS:
|
535
|
+
|
536
|
+
--name NAME
|
537
|
+
Local snapshot name, required
|
538
|
+
|
539
|
+
--new_name NEWNAME
|
540
|
+
New name for the snapshot
|
541
|
+
|
542
|
+
--description DESCRIPTION
|
543
|
+
Update description for snapshot
|
544
|
+
|
140
545
|
### aptly-cli graph [options]
|
141
546
|
|
142
|
-
|
547
|
+
NAME:
|
143
548
|
|
144
|
-
|
549
|
+
graph
|
550
|
+
|
551
|
+
SYNOPSIS:
|
552
|
+
|
553
|
+
aptly-cli graph [options]
|
554
|
+
|
555
|
+
DESCRIPTION:
|
556
|
+
|
557
|
+
Download an svg or png graph of repository layout
|
558
|
+
|
559
|
+
EXAMPLES:
|
560
|
+
|
561
|
+
# description
|
562
|
+
aptly-cli graph png > ~/repo_graph.png
|
563
|
+
|
564
|
+
OPTIONS:
|
145
565
|
|
146
|
-
|
566
|
+
--type GRAPH_TYPE
|
567
|
+
Type of graph to download, present options are png or svg
|
147
568
|
|
148
569
|
## Development
|
149
570
|
|
data/bin/aptly-cli
CHANGED
data/lib/aptly_cli/version.rb
CHANGED
data/lib/aptly_load.rb
CHANGED
@@ -28,7 +28,7 @@ module AptlyCli
|
|
28
28
|
begin
|
29
29
|
config = YAML::load(IO.read(path_to_yaml_file))
|
30
30
|
rescue Errno::ENOENT
|
31
|
-
@log.warn("YAML configuration file couldn't be found. Using defaults.")
|
31
|
+
@log.warn("YAML configuration file couldn't be found at /etc/aptly-cli.conf. Using defaults.")
|
32
32
|
return @config
|
33
33
|
rescue Psych::SyntaxError
|
34
34
|
@log.warn("YAML configuration file contains invalid syntax. Using defaults.")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aptly_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|