artifactory-cleaner 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.idea/.gitignore +2 -0
- data/.idea/checkstyle-idea.xml +16 -0
- data/.idea/dictionaries/jgitlin.xml +7 -0
- data/.idea/misc.xml +6 -0
- data/.idea/modules.xml +8 -0
- data/.idea/vcs.xml +6 -0
- data/.rspec +3 -0
- data/.rspec_status +39 -0
- data/.travis.yml +6 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +12 -0
- data/README.md +73 -0
- data/Rakefile +20 -0
- data/artifactory-cleaner.gemspec +43 -0
- data/artifactory-cleaner.iml +9 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/doc/rdoc/Artifactory.html +94 -0
- data/doc/rdoc/Artifactory/Cleaner.html +108 -0
- data/doc/rdoc/Artifactory/Cleaner/ArtifactBucket.html +504 -0
- data/doc/rdoc/Artifactory/Cleaner/ArtifactBucketCollection.html +570 -0
- data/doc/rdoc/Artifactory/Cleaner/ArtifactFilter.html +712 -0
- data/doc/rdoc/Artifactory/Cleaner/ArtifactFilterRule.html +519 -0
- data/doc/rdoc/Artifactory/Cleaner/CLI.html +625 -0
- data/doc/rdoc/Artifactory/Cleaner/Controller.html +1014 -0
- data/doc/rdoc/Artifactory/Cleaner/DiscoveredArtifact.html +400 -0
- data/doc/rdoc/Artifactory/Cleaner/DiscoveryWorker.html +466 -0
- data/doc/rdoc/Artifactory/Cleaner/Error.html +101 -0
- data/doc/rdoc/Artifactory/Cleaner/SpecHelpers.html +190 -0
- data/doc/rdoc/Artifactory/Cleaner/Util.html +157 -0
- data/doc/rdoc/CODE_OF_CONDUCT_md.html +228 -0
- data/doc/rdoc/Float.html +94 -0
- data/doc/rdoc/Gemfile.html +144 -0
- data/doc/rdoc/Gemfile_lock.html +217 -0
- data/doc/rdoc/Object.html +112 -0
- data/doc/rdoc/README_md.html +241 -0
- data/doc/rdoc/Rakefile.html +151 -0
- data/doc/rdoc/artifactory-cleaner_gemspec.html +173 -0
- data/doc/rdoc/artifactory-cleaner_iml.html +139 -0
- data/doc/rdoc/bin/setup.html +134 -0
- data/doc/rdoc/created.rid +219 -0
- data/doc/rdoc/css/fonts.css +167 -0
- data/doc/rdoc/css/rdoc.css +590 -0
- data/doc/rdoc/filterlist_yaml.html +149 -0
- data/doc/rdoc/filters/clean-amzn_yaml.html +133 -0
- data/doc/rdoc/filters/snapshots_yaml.html +137 -0
- data/doc/rdoc/filters/test-filter_yaml.html +137 -0
- data/doc/rdoc/filters/yum-test_yaml.html +141 -0
- data/doc/rdoc/fonts/Lato-Light.ttf +0 -0
- data/doc/rdoc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/rdoc/fonts/Lato-Regular.ttf +0 -0
- data/doc/rdoc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/rdoc/images/add.png +0 -0
- data/doc/rdoc/images/arrow_up.png +0 -0
- data/doc/rdoc/images/brick.png +0 -0
- data/doc/rdoc/images/brick_link.png +0 -0
- data/doc/rdoc/images/bug.png +0 -0
- data/doc/rdoc/images/bullet_black.png +0 -0
- data/doc/rdoc/images/bullet_toggle_minus.png +0 -0
- data/doc/rdoc/images/bullet_toggle_plus.png +0 -0
- data/doc/rdoc/images/date.png +0 -0
- data/doc/rdoc/images/delete.png +0 -0
- data/doc/rdoc/images/find.png +0 -0
- data/doc/rdoc/images/loadingAnimation.gif +0 -0
- data/doc/rdoc/images/macFFBgHack.png +0 -0
- data/doc/rdoc/images/package.png +0 -0
- data/doc/rdoc/images/page_green.png +0 -0
- data/doc/rdoc/images/page_white_text.png +0 -0
- data/doc/rdoc/images/page_white_width.png +0 -0
- data/doc/rdoc/images/plugin.png +0 -0
- data/doc/rdoc/images/ruby.png +0 -0
- data/doc/rdoc/images/tag_blue.png +0 -0
- data/doc/rdoc/images/tag_green.png +0 -0
- data/doc/rdoc/images/transparent.png +0 -0
- data/doc/rdoc/images/wrench.png +0 -0
- data/doc/rdoc/images/wrench_orange.png +0 -0
- data/doc/rdoc/images/zoom.png +0 -0
- data/doc/rdoc/index.html +166 -0
- data/doc/rdoc/js/darkfish.js +161 -0
- data/doc/rdoc/js/jquery.js +4 -0
- data/doc/rdoc/js/navigation.js +141 -0
- data/doc/rdoc/js/navigation.js.gz +0 -0
- data/doc/rdoc/js/search.js +109 -0
- data/doc/rdoc/js/search_index.js +1 -0
- data/doc/rdoc/js/search_index.js.gz +0 -0
- data/doc/rdoc/js/searcher.js +229 -0
- data/doc/rdoc/js/searcher.js.gz +0 -0
- data/doc/rdoc/results/archive-test-4_log.html +762 -0
- data/doc/rdoc/results/buckets-2020-01-31_txt.html +233 -0
- data/doc/rdoc/results/clean-test-2_log.html +598 -0
- data/doc/rdoc/results/clean-test-3_log.html +128 -0
- data/doc/rdoc/results/clean-test-5_log.html +2721 -0
- data/doc/rdoc/results/clean-test-6_log.html +135 -0
- data/doc/rdoc/results/clean-test-7_log.html +137 -0
- data/doc/rdoc/results/clean-test-8-real_log.html +131 -0
- data/doc/rdoc/results/clean-test-9_log.html +131 -0
- data/doc/rdoc/results/clean-test1_log.html +1759 -0
- data/doc/rdoc/results/yum-test_2020-01-31_log.html +2854 -0
- data/doc/rdoc/results/yum-test_dry-run_log.html +1074 -0
- data/doc/rdoc/table_of_contents.html +581 -0
- data/exe/artifactory-cleaner +12 -0
- data/lib/artifactory/cleaner.rb +17 -0
- data/lib/artifactory/cleaner/artifact_bucket.rb +102 -0
- data/lib/artifactory/cleaner/artifact_bucket_collection.rb +118 -0
- data/lib/artifactory/cleaner/artifact_filter.rb +146 -0
- data/lib/artifactory/cleaner/artifact_filter_rule.rb +81 -0
- data/lib/artifactory/cleaner/cli.rb +415 -0
- data/lib/artifactory/cleaner/controller.rb +466 -0
- data/lib/artifactory/cleaner/discovered_artifact.rb +71 -0
- data/lib/artifactory/cleaner/discovery_worker.rb +126 -0
- data/lib/artifactory/cleaner/util.rb +21 -0
- data/lib/artifactory/cleaner/version.rb +7 -0
- metadata +252 -0
@@ -0,0 +1,217 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>Gemfile.lock - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/jquery.js"></script>
|
15
|
+
<script src="./js/darkfish.js"></script>
|
16
|
+
|
17
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
18
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
<body id="top" role="document" class="file">
|
23
|
+
<nav role="navigation">
|
24
|
+
<div id="project-navigation">
|
25
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
+
<h2>
|
27
|
+
<a href="./index.html" rel="home">Home</a>
|
28
|
+
</h2>
|
29
|
+
|
30
|
+
<div id="table-of-contents-navigation">
|
31
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
32
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
33
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
38
|
+
<form action="#" method="get" accept-charset="utf-8">
|
39
|
+
<div id="search-field-wrapper">
|
40
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
+
aria-autocomplete="list" aria-controls="search-results"
|
42
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
43
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<ul id="search-results" aria-label="Search Results"
|
47
|
+
aria-busy="false" aria-expanded="false"
|
48
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
+
</form>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
</div>
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
<div id="project-metadata">
|
57
|
+
<div id="fileindex-section" class="nav-section">
|
58
|
+
<h3>Pages</h3>
|
59
|
+
|
60
|
+
<ul class="link-list">
|
61
|
+
|
62
|
+
<li><a href="./CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
|
63
|
+
|
64
|
+
<li><a href="./Gemfile.html">Gemfile</a>
|
65
|
+
|
66
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
67
|
+
|
68
|
+
<li><a href="./README_md.html">README</a>
|
69
|
+
|
70
|
+
<li><a href="./Rakefile.html">Rakefile</a>
|
71
|
+
|
72
|
+
<li><a href="./artifactory-cleaner_gemspec.html">artifactory-cleaner.gemspec</a>
|
73
|
+
|
74
|
+
<li><a href="./artifactory-cleaner_iml.html">artifactory-cleaner.iml</a>
|
75
|
+
|
76
|
+
<li><a href="./bin/setup.html">setup</a>
|
77
|
+
|
78
|
+
<li><a href="./filterlist_yaml.html">filterlist.yaml</a>
|
79
|
+
|
80
|
+
<li><a href="./filters/clean-amzn_yaml.html">clean-amzn.yaml</a>
|
81
|
+
|
82
|
+
<li><a href="./filters/snapshots_yaml.html">snapshots.yaml</a>
|
83
|
+
|
84
|
+
<li><a href="./filters/test-filter_yaml.html">test-filter.yaml</a>
|
85
|
+
|
86
|
+
<li><a href="./filters/yum-test_yaml.html">yum-test.yaml</a>
|
87
|
+
|
88
|
+
<li><a href="./results/archive-test-4_log.html">archive-test-4.log</a>
|
89
|
+
|
90
|
+
<li><a href="./results/buckets-2020-01-31_txt.html">buckets-2020-01-31</a>
|
91
|
+
|
92
|
+
<li><a href="./results/clean-test-2_log.html">clean-test-2.log</a>
|
93
|
+
|
94
|
+
<li><a href="./results/clean-test-3_log.html">clean-test-3.log</a>
|
95
|
+
|
96
|
+
<li><a href="./results/clean-test-5_log.html">clean-test-5.log</a>
|
97
|
+
|
98
|
+
<li><a href="./results/clean-test-6_log.html">clean-test-6.log</a>
|
99
|
+
|
100
|
+
<li><a href="./results/clean-test-7_log.html">clean-test-7.log</a>
|
101
|
+
|
102
|
+
<li><a href="./results/clean-test-8-real_log.html">clean-test-8-real.log</a>
|
103
|
+
|
104
|
+
<li><a href="./results/clean-test-9_log.html">clean-test-9.log</a>
|
105
|
+
|
106
|
+
<li><a href="./results/clean-test1_log.html">clean-test1.log</a>
|
107
|
+
|
108
|
+
<li><a href="./results/yum-test_2020-01-31_log.html">yum-test.2020-01-31.log</a>
|
109
|
+
|
110
|
+
<li><a href="./results/yum-test_dry-run_log.html">yum-test_dry-run.log</a>
|
111
|
+
|
112
|
+
</ul>
|
113
|
+
</div>
|
114
|
+
|
115
|
+
</div>
|
116
|
+
</nav>
|
117
|
+
|
118
|
+
<main role="main" aria-label="Page Gemfile.lock">
|
119
|
+
|
120
|
+
<p>PATH</p>
|
121
|
+
|
122
|
+
<pre>remote: .
|
123
|
+
specs:
|
124
|
+
artifactory-cleaner (1.0.0)
|
125
|
+
artifactory
|
126
|
+
sysexits (>= 1.2.0)
|
127
|
+
thor (~> 1.0.1)</pre>
|
128
|
+
|
129
|
+
<p>GEM</p>
|
130
|
+
|
131
|
+
<pre>remote: https://rubygems.org/
|
132
|
+
specs:
|
133
|
+
artifactory (3.0.12)
|
134
|
+
aruba (0.14.14)
|
135
|
+
childprocess (>= 0.6.3, < 4.0.0)
|
136
|
+
contracts (~> 0.9)
|
137
|
+
cucumber (>= 1.3.19)
|
138
|
+
ffi (~> 1.9)
|
139
|
+
rspec-expectations (>= 2.99)
|
140
|
+
thor (>= 0.19, < 2.0)
|
141
|
+
binding_of_caller (0.8.0)
|
142
|
+
debug_inspector (>= 0.0.1)
|
143
|
+
builder (3.2.4)
|
144
|
+
childprocess (3.0.0)
|
145
|
+
coderay (1.1.2)
|
146
|
+
contracts (0.16.0)
|
147
|
+
cucumber (1.3.20)
|
148
|
+
builder (>= 2.1.2)
|
149
|
+
diff-lcs (>= 1.1.3)
|
150
|
+
gherkin (~> 2.12)
|
151
|
+
multi_json (>= 1.7.5, < 2.0)
|
152
|
+
multi_test (>= 0.1.2)
|
153
|
+
debug_inspector (0.0.3)
|
154
|
+
diff-lcs (1.3)
|
155
|
+
ffi (1.12.1)
|
156
|
+
gherkin (2.12.2)
|
157
|
+
multi_json (~> 1.3)
|
158
|
+
interception (0.5)
|
159
|
+
method_source (0.9.2)
|
160
|
+
multi_json (1.14.1)
|
161
|
+
multi_test (0.1.2)
|
162
|
+
pry (0.12.2)
|
163
|
+
coderay (~> 1.1.0)
|
164
|
+
method_source (~> 0.9.0)
|
165
|
+
pry-rescue (1.5.0)
|
166
|
+
interception (>= 0.5)
|
167
|
+
pry (>= 0.12.0)
|
168
|
+
pry-stack_explorer (0.4.9.3)
|
169
|
+
binding_of_caller (>= 0.7)
|
170
|
+
pry (>= 0.9.11)
|
171
|
+
rake (12.3.3)
|
172
|
+
rdoc (6.0.1)
|
173
|
+
rspec (3.9.0)
|
174
|
+
rspec-core (~> 3.9.0)
|
175
|
+
rspec-expectations (~> 3.9.0)
|
176
|
+
rspec-mocks (~> 3.9.0)
|
177
|
+
rspec-core (3.9.1)
|
178
|
+
rspec-support (~> 3.9.1)
|
179
|
+
rspec-expectations (3.9.0)
|
180
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
181
|
+
rspec-support (~> 3.9.0)
|
182
|
+
rspec-mocks (3.9.1)
|
183
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
184
|
+
rspec-support (~> 3.9.0)
|
185
|
+
rspec-support (3.9.2)
|
186
|
+
sysexits (1.2.0)
|
187
|
+
thor (1.0.1)</pre>
|
188
|
+
|
189
|
+
<p>PLATFORMS</p>
|
190
|
+
|
191
|
+
<pre class="ruby"><span class="ruby-identifier">ruby</span>
|
192
|
+
</pre>
|
193
|
+
|
194
|
+
<p>DEPENDENCIES</p>
|
195
|
+
|
196
|
+
<pre>artifactory-cleaner!
|
197
|
+
aruba (~> 0.14)
|
198
|
+
cucumber (~> 1.3, >= 1.3.20)
|
199
|
+
pry-rescue
|
200
|
+
pry-stack_explorer
|
201
|
+
rake (~> 12.0)
|
202
|
+
rdoc
|
203
|
+
rspec (~> 3.0)</pre>
|
204
|
+
|
205
|
+
<p>BUNDLED WITH</p>
|
206
|
+
|
207
|
+
<pre>2.1.4</pre>
|
208
|
+
</main>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
<footer id="validator-badges" role="contentinfo">
|
213
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
214
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.
|
215
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
216
|
+
</footer>
|
217
|
+
|
@@ -0,0 +1,112 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class Object - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/jquery.js"></script>
|
15
|
+
<script src="./js/darkfish.js"></script>
|
16
|
+
|
17
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
18
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
<body id="top" role="document" class="class">
|
23
|
+
<nav role="navigation">
|
24
|
+
<div id="project-navigation">
|
25
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
+
<h2>
|
27
|
+
<a href="./index.html" rel="home">Home</a>
|
28
|
+
</h2>
|
29
|
+
|
30
|
+
<div id="table-of-contents-navigation">
|
31
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
32
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
33
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
38
|
+
<form action="#" method="get" accept-charset="utf-8">
|
39
|
+
<div id="search-field-wrapper">
|
40
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
+
aria-autocomplete="list" aria-controls="search-results"
|
42
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
43
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<ul id="search-results" aria-label="Search Results"
|
47
|
+
aria-busy="false" aria-expanded="false"
|
48
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
+
</form>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
</div>
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
<div id="class-metadata">
|
57
|
+
|
58
|
+
<div id="parent-class-section" class="nav-section">
|
59
|
+
<h3>Parent</h3>
|
60
|
+
|
61
|
+
|
62
|
+
<p class="link">BasicObject
|
63
|
+
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<div id="includes-section" class="nav-section">
|
67
|
+
<h3>Included Modules</h3>
|
68
|
+
|
69
|
+
<ul class="link-list">
|
70
|
+
|
71
|
+
|
72
|
+
<li><a class="include" href="Artifactory/Cleaner/SpecHelpers.html">Artifactory::Cleaner::SpecHelpers</a>
|
73
|
+
|
74
|
+
|
75
|
+
</ul>
|
76
|
+
</div>
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
</div>
|
81
|
+
</nav>
|
82
|
+
|
83
|
+
<main role="main" aria-labelledby="class-Object">
|
84
|
+
<h1 id="class-Object" class="class">
|
85
|
+
class Object
|
86
|
+
</h1>
|
87
|
+
|
88
|
+
<section class="description">
|
89
|
+
|
90
|
+
</section>
|
91
|
+
|
92
|
+
|
93
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
</section>
|
104
|
+
</main>
|
105
|
+
|
106
|
+
|
107
|
+
<footer id="validator-badges" role="contentinfo">
|
108
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
109
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.
|
110
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
111
|
+
</footer>
|
112
|
+
|
@@ -0,0 +1,241 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>README - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/jquery.js"></script>
|
15
|
+
<script src="./js/darkfish.js"></script>
|
16
|
+
|
17
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
18
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
<body id="top" role="document" class="file">
|
23
|
+
<nav role="navigation">
|
24
|
+
<div id="project-navigation">
|
25
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
+
<h2>
|
27
|
+
<a href="./index.html" rel="home">Home</a>
|
28
|
+
</h2>
|
29
|
+
|
30
|
+
<div id="table-of-contents-navigation">
|
31
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
32
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
33
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
38
|
+
<form action="#" method="get" accept-charset="utf-8">
|
39
|
+
<div id="search-field-wrapper">
|
40
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
+
aria-autocomplete="list" aria-controls="search-results"
|
42
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
43
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<ul id="search-results" aria-label="Search Results"
|
47
|
+
aria-busy="false" aria-expanded="false"
|
48
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
+
</form>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
</div>
|
53
|
+
|
54
|
+
|
55
|
+
<div class="nav-section">
|
56
|
+
<h3>Table of Contents</h3>
|
57
|
+
|
58
|
+
<ul class="link-list" role="directory">
|
59
|
+
<li><a href="#label-Artifactory-3A-3ACleaner">Artifactory::Cleaner</a>
|
60
|
+
<li><a href="#label-Installation">Installation</a>
|
61
|
+
<li><a href="#label-To+use+as+a+CLI+command-3A">To use as a CLI command:</a>
|
62
|
+
<li><a href="#label-Authentication+and+Configuration">Authentication and Configuration</a>
|
63
|
+
<li><a href="#label-To+use+as+a+gem-3A">To use as a gem:</a>
|
64
|
+
<li><a href="#label-Usage">Usage</a>
|
65
|
+
<li><a href="#label-Development">Development</a>
|
66
|
+
</ul>
|
67
|
+
</div>
|
68
|
+
|
69
|
+
|
70
|
+
<div id="project-metadata">
|
71
|
+
<div id="fileindex-section" class="nav-section">
|
72
|
+
<h3>Pages</h3>
|
73
|
+
|
74
|
+
<ul class="link-list">
|
75
|
+
|
76
|
+
<li><a href="./CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
|
77
|
+
|
78
|
+
<li><a href="./Gemfile.html">Gemfile</a>
|
79
|
+
|
80
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
81
|
+
|
82
|
+
<li><a href="./README_md.html">README</a>
|
83
|
+
|
84
|
+
<li><a href="./Rakefile.html">Rakefile</a>
|
85
|
+
|
86
|
+
<li><a href="./artifactory-cleaner_gemspec.html">artifactory-cleaner.gemspec</a>
|
87
|
+
|
88
|
+
<li><a href="./artifactory-cleaner_iml.html">artifactory-cleaner.iml</a>
|
89
|
+
|
90
|
+
<li><a href="./bin/setup.html">setup</a>
|
91
|
+
|
92
|
+
<li><a href="./filterlist_yaml.html">filterlist.yaml</a>
|
93
|
+
|
94
|
+
<li><a href="./filters/clean-amzn_yaml.html">clean-amzn.yaml</a>
|
95
|
+
|
96
|
+
<li><a href="./filters/snapshots_yaml.html">snapshots.yaml</a>
|
97
|
+
|
98
|
+
<li><a href="./filters/test-filter_yaml.html">test-filter.yaml</a>
|
99
|
+
|
100
|
+
<li><a href="./filters/yum-test_yaml.html">yum-test.yaml</a>
|
101
|
+
|
102
|
+
<li><a href="./results/archive-test-4_log.html">archive-test-4.log</a>
|
103
|
+
|
104
|
+
<li><a href="./results/buckets-2020-01-31_txt.html">buckets-2020-01-31</a>
|
105
|
+
|
106
|
+
<li><a href="./results/clean-test-2_log.html">clean-test-2.log</a>
|
107
|
+
|
108
|
+
<li><a href="./results/clean-test-3_log.html">clean-test-3.log</a>
|
109
|
+
|
110
|
+
<li><a href="./results/clean-test-5_log.html">clean-test-5.log</a>
|
111
|
+
|
112
|
+
<li><a href="./results/clean-test-6_log.html">clean-test-6.log</a>
|
113
|
+
|
114
|
+
<li><a href="./results/clean-test-7_log.html">clean-test-7.log</a>
|
115
|
+
|
116
|
+
<li><a href="./results/clean-test-8-real_log.html">clean-test-8-real.log</a>
|
117
|
+
|
118
|
+
<li><a href="./results/clean-test-9_log.html">clean-test-9.log</a>
|
119
|
+
|
120
|
+
<li><a href="./results/clean-test1_log.html">clean-test1.log</a>
|
121
|
+
|
122
|
+
<li><a href="./results/yum-test_2020-01-31_log.html">yum-test.2020-01-31.log</a>
|
123
|
+
|
124
|
+
<li><a href="./results/yum-test_dry-run_log.html">yum-test_dry-run.log</a>
|
125
|
+
|
126
|
+
</ul>
|
127
|
+
</div>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
</nav>
|
131
|
+
|
132
|
+
<main role="main" aria-label="Page README.md">
|
133
|
+
|
134
|
+
<h1 id="label-Artifactory-3A-3ACleaner"><a href="Artifactory/Cleaner.html">Artifactory::Cleaner</a><span><a href="#label-Artifactory-3A-3ACleaner">¶</a> <a href="#top">↑</a></span></h1>
|
135
|
+
|
136
|
+
<p><a href="Artifactory.html">Artifactory</a> Cleaner is a tool for managing
|
137
|
+
<a href="Artifactory.html">Artifactory</a> repositories with a focus on
|
138
|
+
analyzing and optimizing storage usage within <a
|
139
|
+
href="Artifactory.html">Artifactory</a>. <code>Artifactory::Cleaner</code>
|
140
|
+
can be used as a Gem inside other Ruby automation, and also includes a
|
141
|
+
comamnd-line interface (CLI) which can be used inside an interactive
|
142
|
+
terminal session or incorporated into other automation workflows.</p>
|
143
|
+
|
144
|
+
<h2 id="label-Installation">Installation<span><a href="#label-Installation">¶</a> <a href="#top">↑</a></span></h2>
|
145
|
+
|
146
|
+
<h3 id="label-To+use+as+a+CLI+command-3A">To use as a CLI command:<span><a href="#label-To+use+as+a+CLI+command-3A">¶</a> <a href="#top">↑</a></span></h3>
|
147
|
+
|
148
|
+
<p>Check out the repo and execute:</p>
|
149
|
+
|
150
|
+
<pre>bundle install
|
151
|
+
gem build artifactory-cleaner.gemspec
|
152
|
+
sudo gem install artifactory-cleaner-*.gem</pre>
|
153
|
+
|
154
|
+
<p>to install the <code>artifactory-cleaner</code> command.</p>
|
155
|
+
|
156
|
+
<p>Full usage information is available using <code>artifactory-cleaner
|
157
|
+
help</code></p>
|
158
|
+
|
159
|
+
<p>The <code>artifactory-cleaner</code> CLI interface follows the same format
|
160
|
+
as git: <code>artifactory-cleaner command [options]</code></p>
|
161
|
+
|
162
|
+
<p>Commands available are:</p>
|
163
|
+
<ul><li>
|
164
|
+
<p><code>artifactory-cleaner archive</code> Given a specific set of critera
|
165
|
+
(and optionally a set of filters) download all artifacts from specified
|
166
|
+
repos to the local filesystem. <em>Note:</em> this will cause the
|
167
|
+
<code>last_downloaded</code> date of all the artifacts which are archived
|
168
|
+
to be updated to the time the command is run, so they may no longer match
|
169
|
+
your search criteria on a subsequent run</p>
|
170
|
+
</li><li>
|
171
|
+
<p><code>artifactory-cleaner clean</code> delete old artifacts which meet a
|
172
|
+
specific set of critera (and optionally a set of filters) from a given set
|
173
|
+
of repos, with the ability to archive them to the local filesystem. This is
|
174
|
+
Artifactory::Cleaner's primry function: to reduce disk space usage by
|
175
|
+
deleting old, unnecessary artifacts.</p>
|
176
|
+
</li><li>
|
177
|
+
<p><code>artifactory-cleaner list-repos</code> provides information about
|
178
|
+
available repositories in <a href="Artifactory.html">Artifactory</a>. Can
|
179
|
+
be used in pipelines with the <code>-H</code> flag, or can be used to
|
180
|
+
query arepository information in human-readable columns.</p>
|
181
|
+
</li><li>
|
182
|
+
<p><code>artifactory-cleaner usage-report</code> analyze artifacts and produce
|
183
|
+
a report detailing usage breakdown by date ranges, optionally producting a
|
184
|
+
detailed YAML report of all artifacts meeting search criteria</p>
|
185
|
+
</li></ul>
|
186
|
+
|
187
|
+
<h4 id="label-Authentication+and+Configuration">Authentication and Configuration<span><a href="#label-Authentication+and+Configuration">¶</a> <a href="#top">↑</a></span></h4>
|
188
|
+
|
189
|
+
<p>In order for <code>artifactory-cleaner</code> to know which <a
|
190
|
+
href="Artifactory.html">Artifactory</a> server to communicate with and how
|
191
|
+
to authenticate, either command-line arguments may be used, or (preferably)
|
192
|
+
a configuration filr may be specified using the <code>-c /
|
193
|
+
--conf-file</code> switch.</p>
|
194
|
+
|
195
|
+
<p>If using command line arguments, <code>--endpoint</code> can be used to
|
196
|
+
specify the HTTPS URL of the <a href="Artifactory.html">Artifactory</a>
|
197
|
+
API, and <code>--api-key</code> can be used to specify the API key. <em>Be
|
198
|
+
aware</em></p>
|
199
|
+
|
200
|
+
<h3 id="label-To+use+as+a+gem-3A">To use as a gem:<span><a href="#label-To+use+as+a+gem-3A">¶</a> <a href="#top">↑</a></span></h3>
|
201
|
+
|
202
|
+
<p>Add this line to your application's Gemfile:</p>
|
203
|
+
|
204
|
+
<pre class="ruby"><span class="ruby-identifier">gem</span> <span class="ruby-string">'artifactory-cleaner'</span>
|
205
|
+
</pre>
|
206
|
+
|
207
|
+
<p>And then execute:</p>
|
208
|
+
|
209
|
+
<pre>$ bundle install</pre>
|
210
|
+
|
211
|
+
<p>Or install it yourself as:</p>
|
212
|
+
|
213
|
+
<pre>$ gem install artifactory-cleaner</pre>
|
214
|
+
|
215
|
+
<h2 id="label-Usage">Usage<span><a href="#label-Usage">¶</a> <a href="#top">↑</a></span></h2>
|
216
|
+
|
217
|
+
<p>Execute <code>artifactory-cleaner help</code> for a usage statement</p>
|
218
|
+
|
219
|
+
<h2 id="label-Development">Development<span><a href="#label-Development">¶</a> <a href="#top">↑</a></span></h2>
|
220
|
+
|
221
|
+
<p>After checking out the repo, run <code>bin/setup</code> to install
|
222
|
+
dependencies. Then, run <code>rake spec</code> to run the tests. You can
|
223
|
+
also run <code>bin/console</code> for an interactive prompt that will allow
|
224
|
+
you to experiment.</p>
|
225
|
+
|
226
|
+
<p>To install this gem onto your local machine, run <code>bundle exec rake
|
227
|
+
install</code>. To release a new version, update the version number in
|
228
|
+
<code>version.rb</code>, and then run <code>bundle exec rake
|
229
|
+
release</code>, which will create a git tag for the version, push git
|
230
|
+
commits and tags, and push the <code>.gem</code> file to <a
|
231
|
+
href="https://rubygems.org">rubygems.org</a>.</p>
|
232
|
+
</main>
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
<footer id="validator-badges" role="contentinfo">
|
237
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
238
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.
|
239
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
240
|
+
</footer>
|
241
|
+
|