aptly_cli 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmY4ZmJlZTliNWJkZGI5NjAyNThkMTdmNTVjMGI1OTIwM2Q3YzBmZQ==
4
+ YWI4Mzg5ZGUxMmQ1YzNmMDFjOTNkZjYyMWQyMTQ1NDEyNzZhZDgxZQ==
5
5
  data.tar.gz: !binary |-
6
- NGQ0ZTdjNjliZDlkZDdkNTQ3YzFiNjQ0NzM3NTM2YzkzMDM1MTFlMA==
6
+ OTNkNmVmOTZlYjFiNzVkZmU4NGQ0ZjdkYmUzYmIxNWIzNTA2ZDI1Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzZmMWI2N2ViNGRlODY0MzVhMjI0MTdmMTJlNTQ0ODlmYzc1YjFkZGM2YmQ1
10
- NzBkMDUzYTYzOWQ4ODFmYzYxMzg4NjdlODFlZTc0MTJhZWY5NDQ5ZjM3NTJj
11
- YWZjM2NmMWE4MDAyNDM4NzQ4YjQ1MGFiZTI0YjcxNjJkOWJmZmE=
9
+ MDVhYTcwZmFiMmVhNTU2MTYzODUzNmQwNDllZjlkOTMzZjI4ZTQzZTgzYWEw
10
+ ZjlmMzFhZmY1ODBlMmRhNWVmN2UxYmE5ZjljNzJhNjNiNzBlNjI4NDNkZThh
11
+ YTI1NDg3OWFjYjJjNDJmNjQ1NGY0NGViYTc4NTVkNjg0Yzk0MTA=
12
12
  data.tar.gz: !binary |-
13
- NGM2NGM1NWVlYjUxZmQxZTQ4Njc0OTlhZWY5MGZjYWM5ZWJiYTk0YzY3N2Q3
14
- NWE2YmYxM2QyNDNhMjcwZGRkOGRhNjkzMmRmNDA5NmNiZmFkOWRmMjFlZDA5
15
- YmE5YjQ1N2IzNTA4OTk0MDkzN2U2NzE2MDg0ZGJiMDUxOTI3ZWY=
13
+ MTlhNTI4YjQ5ODk4YzA4NzM5N2IyOGUyZmJmZDgxYjNlYTM0MzViMGFlM2Fj
14
+ NGFlODBiMjlhY2I2YWMzNjBlZDljODIxZmFmZWNjM2ZjOWE4MTQzMDExM2Y3
15
+ NjM3YzJkMTI2OWMxNjAzNjVjNjIxMmY5MmIxZDYwMmI5ZjVlMzA=
data/README.md CHANGED
@@ -3,7 +3,8 @@
3
3
  [![Build Status](https://travis-ci.org/sepulworld/aptly_cli.svg)](https://travis-ci.org/sepulworld/aptly_cli)
4
4
  [![Gem Version](https://badge.fury.io/rb/aptly_cli.svg)](http://badge.fury.io/rb/aptly_cli)
5
5
 
6
- A command line interace to execute Aptly commands againts remote Aptly API servers. Aptly-cli will allow you to interact with the file, repo, snapshot, publish, packages, graph and version API endpoints of your Aptly server.
6
+ A command line interace to execute [Aptly](http://aptly.info) commands againts remote Aptly API servers. Aptly-cli will allow you to interact with the file, repo, snapshot, publish, packages, graph and version API endpoints of your Aptly server.
7
+
7
8
 
8
9
  ## Installation
9
10
 
@@ -20,7 +21,7 @@ Or install it yourself as:
20
21
  $ gem install aptly_cli
21
22
 
22
23
 
23
- Create a configuration file with aptly server and port, /etc/aptly-cli.conf:
24
+ Create a configuration file with aptly server and port, /etc/aptly-cli.conf (YAML syntax):
24
25
 
25
26
  ---
26
27
  :server: 127.0.0.1
@@ -28,543 +29,39 @@ Create a configuration file with aptly server and port, /etc/aptly-cli.conf:
28
29
 
29
30
  If a configuration file is not found the defaults in the example configuration file above will be used
30
31
 
31
- ## Usage
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
-
53
- ### aptly-cli file_list [options]
54
-
55
- NAME:
56
-
57
- file_list
58
-
59
- SYNOPSIS:
60
-
61
- aptly-cli file_list [options]
62
-
63
- DESCRIPTION:
64
-
65
- List all directories that contain uploaded files
66
-
67
- EXAMPLES:
68
-
69
- # List all directories for file uploads
70
- aptly-cli file_list
71
- # List all files in redis directory
72
- aptly-cli file_list --directory redis
73
-
74
- OPTIONS:
75
-
76
- --directory DIRECTORY
77
- Directory to list on server
78
-
79
- ### aptly-cli file_upload [options]
80
-
81
- NAME:
82
-
83
- file_upload
84
-
85
- SYNOPSIS:
86
-
87
- aptly-cli file_upload [options]
88
-
89
- DESCRIPTION:
90
-
91
- File upload
92
-
93
- EXAMPLES:
94
-
95
- # upload file package.deb to apt server inside directory /aptlyserver_directory/
96
- aptly-cli file_upload --upload /local/copy/of/package.deb --directory /aptlyserver_directory/
97
-
98
- OPTIONS:
99
-
100
- --directory DIRECTORY
101
- Directory to load packages into
102
-
103
- --upload UPLOAD
104
- Package(s) to upload
105
-
106
- ### aptly-cli file_delete [options]
107
-
108
- NAME:
109
-
110
- file_delete
111
-
112
- SYNOPSIS:
113
-
114
- aptly-cli file_delete [options]
115
-
116
- DESCRIPTION:
117
-
118
- File delete
119
-
120
- EXAMPLES:
121
-
122
- # Delete package redis-server found in redis upload directory
123
- aptly-cli file_delete --target /redis/redis-server_2.8.3_i386-cc1.deb
124
-
125
- OPTIONS:
126
-
127
- --target TARGET
128
- Path to directory or specific package to delete
129
-
130
- ### aptly-cli repo_create [options]
131
-
132
- NAME:
133
-
134
- repo_create
135
-
136
- SYNOPSIS:
137
-
138
- aptly-cli repo_create [options]
139
-
140
- DESCRIPTION:
141
-
142
- Create a new repository, requires --name
32
+ ## Usage - available aptly-cli commands
33
+
34
+ aptly-cli --help
35
+
36
+ file_delete Deletes all files in upload directory and directory itself. Or delete just a file
37
+ file_list List all directories that contain uploaded files
38
+ file_upload Parameter --directory is upload directory name. Directory would be created if it doesn’t exist.
39
+ graph Download a graph of repository layout. Current options are "svg" and "png"
40
+ help Display global or [command] help documentation
41
+ publish_drop Delete published repository, clean up files in published directory.
42
+ publish_list List published repositories.
43
+ publish_repo Publish local repository or snapshot under specified prefix. Storage might be passed in prefix as well, e.g. s3:packages/. To supply empty prefix, just remove last part (POST /api/publish/:prefix/<:repos>or<:snapshots>
44
+ publish_update Update published repository. If local repository has been published, published repository would be updated to match local repository contents. If snapshots have been been published, it is possible to switch each component to new snapshot
45
+ repo_create Create a new repository, requires --name
46
+ repo_delete Delete a local repository, requires --name
47
+ repo_edit Edit a local repository metadata, requires --name
48
+ repo_list Show list of currently available local repositories
49
+ repo_package_query List all packages in local repository or perform search on repository contents and return result., requires --name
50
+ repo_show Returns basic information about local repository
51
+ repo_upload Import packages from files (uploaded using File Upload API) to the local repository. If directory specified, aptly would discover package files automatically.Adding same package to local repository is not an error. By default aptly would try to remove every successfully processed file and directory :dir (if it becomes empty after import).
52
+ snapshot_create Create snapshot of current local repository :name contents as new snapshot with name :snapname
53
+ snapshot_delete Delete snapshot. Snapshot can’t be deleted if it is published. aptly would refuse to delete snapshot if it has been used as source to create other snapshots, but that could be overridden with force parameter
54
+ snapshot_diff Calculate difference between two snapshots --name (left) and --withsnapshot (right).
55
+ snapshot_list Return list of all snapshots created in the system
56
+ snapshot_search List all packages in snapshot or perform search on snapshot contents and return result
57
+ snapshot_show Get information about snapshot by name
58
+ snapshot_update Update snapshot’s description or name
59
+ version Display aptly server
143
60
 
144
- EXAMPLES:
145
-
146
- # creat repo
147
- aptly-cli repo_create --name megatronsoftware
148
- # creat repo with distribution set to 'trusty'
149
- aptly-cli repo_create --name megatronsoftware --default_distribution trusty
150
-
151
- OPTIONS:
152
-
153
- --name NAME
154
- Local repository name, required
155
-
156
- --comment COMMENT
157
- Text describing local repository for the user
158
-
159
- --default_distribution DISTRIBUTION
160
- Default distribution when publishing from this local repo
161
-
162
-
163
- --default_component COMPONENT
164
- Default component when publishing from this local repo
165
-
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
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
-
545
- ### aptly-cli graph [options]
546
-
547
- NAME:
548
-
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
61
+ ### To see more options for each command
563
62
 
564
- OPTIONS:
63
+ aptly-cli <command> --help
565
64
 
566
- --type GRAPH_TYPE
567
- Type of graph to download, present options are png or svg
568
65
 
569
66
  ## Development
570
67
 
data/bin/aptly-cli CHANGED
@@ -1,10 +1,11 @@
1
1
  #!/usr/bin/env ruby
2
+ # encoding: utf-8
2
3
 
3
4
  require 'rubygems'
4
5
  require 'commander/import'
5
6
  require 'aptly_cli'
6
7
 
7
- program :version, '0.1.5'
8
+ program :version, '0.1.6'
8
9
  program :description, 'Aptly repository API client'
9
10
 
10
11
  command :file_list do |c|
@@ -1,3 +1,3 @@
1
1
  module AptlyCli
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
4
+ version: 0.1.6
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-18 00:00:00.000000000 Z
11
+ date: 2015-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler