artifactory-cleaner 1.0.1

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.
Files changed (117) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +4 -0
  3. data/.idea/.gitignore +2 -0
  4. data/.idea/checkstyle-idea.xml +16 -0
  5. data/.idea/dictionaries/jgitlin.xml +7 -0
  6. data/.idea/misc.xml +6 -0
  7. data/.idea/modules.xml +8 -0
  8. data/.idea/vcs.xml +6 -0
  9. data/.rspec +3 -0
  10. data/.rspec_status +39 -0
  11. data/.travis.yml +6 -0
  12. data/CODE_OF_CONDUCT.md +74 -0
  13. data/Gemfile +12 -0
  14. data/README.md +73 -0
  15. data/Rakefile +20 -0
  16. data/artifactory-cleaner.gemspec +43 -0
  17. data/artifactory-cleaner.iml +9 -0
  18. data/bin/console +14 -0
  19. data/bin/setup +8 -0
  20. data/doc/rdoc/Artifactory.html +94 -0
  21. data/doc/rdoc/Artifactory/Cleaner.html +108 -0
  22. data/doc/rdoc/Artifactory/Cleaner/ArtifactBucket.html +504 -0
  23. data/doc/rdoc/Artifactory/Cleaner/ArtifactBucketCollection.html +570 -0
  24. data/doc/rdoc/Artifactory/Cleaner/ArtifactFilter.html +712 -0
  25. data/doc/rdoc/Artifactory/Cleaner/ArtifactFilterRule.html +519 -0
  26. data/doc/rdoc/Artifactory/Cleaner/CLI.html +625 -0
  27. data/doc/rdoc/Artifactory/Cleaner/Controller.html +1014 -0
  28. data/doc/rdoc/Artifactory/Cleaner/DiscoveredArtifact.html +400 -0
  29. data/doc/rdoc/Artifactory/Cleaner/DiscoveryWorker.html +466 -0
  30. data/doc/rdoc/Artifactory/Cleaner/Error.html +101 -0
  31. data/doc/rdoc/Artifactory/Cleaner/SpecHelpers.html +190 -0
  32. data/doc/rdoc/Artifactory/Cleaner/Util.html +157 -0
  33. data/doc/rdoc/CODE_OF_CONDUCT_md.html +228 -0
  34. data/doc/rdoc/Float.html +94 -0
  35. data/doc/rdoc/Gemfile.html +144 -0
  36. data/doc/rdoc/Gemfile_lock.html +217 -0
  37. data/doc/rdoc/Object.html +112 -0
  38. data/doc/rdoc/README_md.html +241 -0
  39. data/doc/rdoc/Rakefile.html +151 -0
  40. data/doc/rdoc/artifactory-cleaner_gemspec.html +173 -0
  41. data/doc/rdoc/artifactory-cleaner_iml.html +139 -0
  42. data/doc/rdoc/bin/setup.html +134 -0
  43. data/doc/rdoc/created.rid +219 -0
  44. data/doc/rdoc/css/fonts.css +167 -0
  45. data/doc/rdoc/css/rdoc.css +590 -0
  46. data/doc/rdoc/filterlist_yaml.html +149 -0
  47. data/doc/rdoc/filters/clean-amzn_yaml.html +133 -0
  48. data/doc/rdoc/filters/snapshots_yaml.html +137 -0
  49. data/doc/rdoc/filters/test-filter_yaml.html +137 -0
  50. data/doc/rdoc/filters/yum-test_yaml.html +141 -0
  51. data/doc/rdoc/fonts/Lato-Light.ttf +0 -0
  52. data/doc/rdoc/fonts/Lato-LightItalic.ttf +0 -0
  53. data/doc/rdoc/fonts/Lato-Regular.ttf +0 -0
  54. data/doc/rdoc/fonts/Lato-RegularItalic.ttf +0 -0
  55. data/doc/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
  56. data/doc/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
  57. data/doc/rdoc/images/add.png +0 -0
  58. data/doc/rdoc/images/arrow_up.png +0 -0
  59. data/doc/rdoc/images/brick.png +0 -0
  60. data/doc/rdoc/images/brick_link.png +0 -0
  61. data/doc/rdoc/images/bug.png +0 -0
  62. data/doc/rdoc/images/bullet_black.png +0 -0
  63. data/doc/rdoc/images/bullet_toggle_minus.png +0 -0
  64. data/doc/rdoc/images/bullet_toggle_plus.png +0 -0
  65. data/doc/rdoc/images/date.png +0 -0
  66. data/doc/rdoc/images/delete.png +0 -0
  67. data/doc/rdoc/images/find.png +0 -0
  68. data/doc/rdoc/images/loadingAnimation.gif +0 -0
  69. data/doc/rdoc/images/macFFBgHack.png +0 -0
  70. data/doc/rdoc/images/package.png +0 -0
  71. data/doc/rdoc/images/page_green.png +0 -0
  72. data/doc/rdoc/images/page_white_text.png +0 -0
  73. data/doc/rdoc/images/page_white_width.png +0 -0
  74. data/doc/rdoc/images/plugin.png +0 -0
  75. data/doc/rdoc/images/ruby.png +0 -0
  76. data/doc/rdoc/images/tag_blue.png +0 -0
  77. data/doc/rdoc/images/tag_green.png +0 -0
  78. data/doc/rdoc/images/transparent.png +0 -0
  79. data/doc/rdoc/images/wrench.png +0 -0
  80. data/doc/rdoc/images/wrench_orange.png +0 -0
  81. data/doc/rdoc/images/zoom.png +0 -0
  82. data/doc/rdoc/index.html +166 -0
  83. data/doc/rdoc/js/darkfish.js +161 -0
  84. data/doc/rdoc/js/jquery.js +4 -0
  85. data/doc/rdoc/js/navigation.js +141 -0
  86. data/doc/rdoc/js/navigation.js.gz +0 -0
  87. data/doc/rdoc/js/search.js +109 -0
  88. data/doc/rdoc/js/search_index.js +1 -0
  89. data/doc/rdoc/js/search_index.js.gz +0 -0
  90. data/doc/rdoc/js/searcher.js +229 -0
  91. data/doc/rdoc/js/searcher.js.gz +0 -0
  92. data/doc/rdoc/results/archive-test-4_log.html +762 -0
  93. data/doc/rdoc/results/buckets-2020-01-31_txt.html +233 -0
  94. data/doc/rdoc/results/clean-test-2_log.html +598 -0
  95. data/doc/rdoc/results/clean-test-3_log.html +128 -0
  96. data/doc/rdoc/results/clean-test-5_log.html +2721 -0
  97. data/doc/rdoc/results/clean-test-6_log.html +135 -0
  98. data/doc/rdoc/results/clean-test-7_log.html +137 -0
  99. data/doc/rdoc/results/clean-test-8-real_log.html +131 -0
  100. data/doc/rdoc/results/clean-test-9_log.html +131 -0
  101. data/doc/rdoc/results/clean-test1_log.html +1759 -0
  102. data/doc/rdoc/results/yum-test_2020-01-31_log.html +2854 -0
  103. data/doc/rdoc/results/yum-test_dry-run_log.html +1074 -0
  104. data/doc/rdoc/table_of_contents.html +581 -0
  105. data/exe/artifactory-cleaner +12 -0
  106. data/lib/artifactory/cleaner.rb +17 -0
  107. data/lib/artifactory/cleaner/artifact_bucket.rb +102 -0
  108. data/lib/artifactory/cleaner/artifact_bucket_collection.rb +118 -0
  109. data/lib/artifactory/cleaner/artifact_filter.rb +146 -0
  110. data/lib/artifactory/cleaner/artifact_filter_rule.rb +81 -0
  111. data/lib/artifactory/cleaner/cli.rb +415 -0
  112. data/lib/artifactory/cleaner/controller.rb +466 -0
  113. data/lib/artifactory/cleaner/discovered_artifact.rb +71 -0
  114. data/lib/artifactory/cleaner/discovery_worker.rb +126 -0
  115. data/lib/artifactory/cleaner/util.rb +21 -0
  116. data/lib/artifactory/cleaner/version.rb +7 -0
  117. metadata +252 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d7b5624923b29edae4369ff89c41976b4e27cc56f8df06bff3b3f5e9080456ed
4
+ data.tar.gz: 0dff8f3f9727b62772dfefd37f22ff38dbb6a2fff49649c50e8094cf90fefa82
5
+ SHA512:
6
+ metadata.gz: 9a37fc6118a554568a30631cfc512bfeedaa192ae9623beb7e5e59031c10e6530df0e4e2ec67951a3e31a8189f8e55d9e7e6f1d1333fb489941d883b7b55ff40
7
+ data.tar.gz: c9312df05439d586e4d3a9fe4bbbbe0f7c46b477eee08b42a55ac58d164fdc6dd6b375b1be83fefc92814e0f216460f33a5e7b1b7bdcad76a781ab1ae06d4fd6
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ Gemfile.lock
2
+ .DS_Store
3
+ .artifactory.yml
4
+ artifactory-cleaner-*.gem
data/.idea/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ # Default ignored files
2
+ /workspace.xml
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="CheckStyle-IDEA">
4
+ <option name="configuration">
5
+ <map>
6
+ <entry key="checkstyle-version" value="8.27" />
7
+ <entry key="copy-libs" value="false" />
8
+ <entry key="location-0" value="BUNDLED:(bundled):Sun Checks" />
9
+ <entry key="location-1" value="BUNDLED:(bundled):Google Checks" />
10
+ <entry key="scan-before-checkin" value="false" />
11
+ <entry key="scanscope" value="JavaOnly" />
12
+ <entry key="suppress-errors" value="false" />
13
+ </map>
14
+ </option>
15
+ </component>
16
+ </project>
@@ -0,0 +1,7 @@
1
+ <component name="ProjectDictionaryState">
2
+ <dictionary name="jgitlin">
3
+ <words>
4
+ <w>artifactory</w>
5
+ </words>
6
+ </dictionary>
7
+ </component>
data/.idea/misc.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager">
4
+ <output url="file://$PROJECT_DIR$/out" />
5
+ </component>
6
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/artifactory-cleaner.iml" filepath="$PROJECT_DIR$/artifactory-cleaner.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rspec_status ADDED
@@ -0,0 +1,39 @@
1
+ example_id | status | run_time |
2
+ -------------------------------------------- | ------ | --------------- |
3
+ ./spec/artifactory/cleaner_spec.rb[1:1] | passed | 0.00036 seconds |
4
+ ./spec/artifactory/cleaner_spec.rb[1:2:1] | passed | 0.00053 seconds |
5
+ ./spec/artifactory/cleaner_spec.rb[1:2:2] | passed | 0.00005 seconds |
6
+ ./spec/artifactory/cleaner_spec.rb[1:2:3] | passed | 0.00005 seconds |
7
+ ./spec/artifactory/cleaner_spec.rb[1:2:4] | passed | 0.00005 seconds |
8
+ ./spec/artifactory/cleaner_spec.rb[1:2:5] | passed | 0.00006 seconds |
9
+ ./spec/artifactory/cleaner_spec.rb[1:2:6] | passed | 0.00024 seconds |
10
+ ./spec/artifactory/cleaner_spec.rb[1:2:7:1] | passed | 0.00008 seconds |
11
+ ./spec/artifactory/cleaner_spec.rb[1:2:7:2] | passed | 0.00061 seconds |
12
+ ./spec/artifactory/cleaner_spec.rb[1:2:7:3] | passed | 0.00016 seconds |
13
+ ./spec/artifactory/cleaner_spec.rb[1:2:7:4] | passed | 0.00004 seconds |
14
+ ./spec/artifactory/cleaner_spec.rb[1:2:7:5] | passed | 0.00006 seconds |
15
+ ./spec/artifactory/cleaner_spec.rb[1:3:1] | passed | 0.00006 seconds |
16
+ ./spec/artifactory/cleaner_spec.rb[1:3:2] | passed | 0.00005 seconds |
17
+ ./spec/artifactory/cleaner_spec.rb[1:3:3] | passed | 0.00005 seconds |
18
+ ./spec/artifactory/cleaner_spec.rb[1:3:4] | passed | 0.00005 seconds |
19
+ ./spec/artifactory/cleaner_spec.rb[1:3:5] | passed | 0.00006 seconds |
20
+ ./spec/artifactory/cleaner_spec.rb[1:3:6] | passed | 0.00089 seconds |
21
+ ./spec/artifactory/cleaner_spec.rb[1:3:7] | passed | 0.00007 seconds |
22
+ ./spec/artifactory/cleaner_spec.rb[1:3:8] | passed | 0.00005 seconds |
23
+ ./spec/artifactory/cleaner_spec.rb[1:3:9] | passed | 0.00035 seconds |
24
+ ./spec/artifactory/cleaner_spec.rb[1:3:10:1] | passed | 0.0018 seconds |
25
+ ./spec/artifactory/cleaner_spec.rb[1:3:11:1] | passed | 0.00243 seconds |
26
+ ./spec/artifactory/cleaner_spec.rb[1:4:1] | passed | 0.00005 seconds |
27
+ ./spec/artifactory/cleaner_spec.rb[1:5:1] | passed | 0.00006 seconds |
28
+ ./spec/artifactory/cleaner_spec.rb[1:5:2] | passed | 0.00005 seconds |
29
+ ./spec/artifactory/cleaner_spec.rb[1:5:3] | passed | 0.00004 seconds |
30
+ ./spec/artifactory/cleaner_spec.rb[1:5:4] | passed | 0.00004 seconds |
31
+ ./spec/artifactory/cleaner_spec.rb[1:5:5] | passed | 0.00004 seconds |
32
+ ./spec/artifactory/cleaner_spec.rb[1:5:6] | passed | 0.00004 seconds |
33
+ ./spec/artifactory/cleaner_spec.rb[1:5:7:1] | passed | 0.00004 seconds |
34
+ ./spec/artifactory/cleaner_spec.rb[1:5:7:2] | passed | 0.00031 seconds |
35
+ ./spec/artifactory/cleaner_spec.rb[1:5:7:3] | passed | 0.00004 seconds |
36
+ ./spec/artifactory/cleaner_spec.rb[1:5:7:4] | passed | 0.00019 seconds |
37
+ ./spec/artifactory/cleaner_spec.rb[1:5:7:5] | passed | 0.00006 seconds |
38
+ ./spec/artifactory/cleaner_spec.rb[1:5:7:6] | passed | 0.00007 seconds |
39
+ ./spec/artifactory/cleaner_spec.rb[1:5:7:7] | passed | 0.00006 seconds |
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.5.5
6
+ before_install: gem install bundler -v 2.1.4
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at TODO: Write your email address. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in artifactory-cleaner.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
7
+ gem "rspec", "~> 3.0"
8
+
9
+ group :development do
10
+ gem 'pry-rescue'
11
+ gem 'pry-stack_explorer'
12
+ end
data/README.md ADDED
@@ -0,0 +1,73 @@
1
+ # Artifactory::Cleaner
2
+
3
+ Artifactory Cleaner is a tool for managing Artifactory repositories with a focus on analyzing and optimizing storage
4
+ usage within Artifactory. `Artifactory::Cleaner` can be used as a Gem inside other Ruby automation, and also includes
5
+ a comamnd-line interface (CLI) which can be used inside an interactive terminal session or incorporated into other
6
+ automation workflows.
7
+
8
+ ## Installation
9
+
10
+ ### To use as a CLI command:
11
+
12
+ Check out the repo and execute:
13
+
14
+ ```bash
15
+ bundle install
16
+ gem build artifactory-cleaner.gemspec
17
+ sudo gem install artifactory-cleaner-*.gem
18
+ ```
19
+
20
+ to install the `artifactory-cleaner` command.
21
+
22
+ Full usage information is available using `artifactory-cleaner help`
23
+
24
+ The `artifactory-cleaner` CLI interface follows the same format as git: `artifactory-cleaner command [options]`
25
+
26
+ Commands available are:
27
+
28
+ * `artifactory-cleaner archive` Given a specific set of critera (and optionally a set of filters) download all artifacts
29
+ from specified repos to the local filesystem. *Note:* this will cause the `last_downloaded` date of all the artifacts
30
+ which are archived to be updated to the time the command is run, so they may no longer match your search criteria on
31
+ a subsequent run
32
+ * `artifactory-cleaner clean` delete old artifacts which meet a specific set of critera (and optionally a set of filters)
33
+ from a given set of repos, with the ability to archive them to the local filesystem. This is Artifactory::Cleaner's
34
+ primry function: to reduce disk space usage by deleting old, unnecessary artifacts.
35
+ * `artifactory-cleaner list-repos` provides information about available repositories in Artifactory. Can be used in
36
+ pipelines with the `-H` flag, or can be used to query arepository information in human-readable columns.
37
+ * `artifactory-cleaner usage-report` analyze artifacts and produce a report detailing usage breakdown by date ranges,
38
+ optionally producting a detailed YAML report of all artifacts meeting search criteria
39
+
40
+ #### Authentication and Configuration
41
+
42
+ In order for `artifactory-cleaner` to know which Artifactory server to communicate with and how to authenticate, either
43
+ command-line arguments may be used, or (preferably) a configuration filr may be specified using the `-c / --conf-file`
44
+ switch.
45
+
46
+ If using command line arguments, `--endpoint` can be used to specify the HTTPS URL of the Artifactory API, and `--api-key`
47
+ can be used to specify the API key. *Be aware*
48
+
49
+ ### To use as a gem:
50
+ Add this line to your application's Gemfile:
51
+
52
+ ```ruby
53
+ gem 'artifactory-cleaner'
54
+ ```
55
+
56
+ And then execute:
57
+
58
+ $ bundle install
59
+
60
+ Or install it yourself as:
61
+
62
+ $ gem install artifactory-cleaner
63
+
64
+ ## Usage
65
+
66
+ Execute `artifactory-cleaner help` for a usage statement
67
+
68
+ ## Development
69
+
70
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
71
+
72
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
73
+
data/Rakefile ADDED
@@ -0,0 +1,20 @@
1
+ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), "lib")
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ require "artifactory/cleaner/artifact_bucket"
7
+ require "artifactory/cleaner/artifact_bucket_collection"
8
+
9
+ RSpec::Core::RakeTask.new(:spec)
10
+
11
+ task :default => :spec
12
+
13
+ require 'rdoc/task'
14
+
15
+ RDoc::Task.new do |rdoc|
16
+ #rdoc.main = "README.rdoc"
17
+ rdoc.rdoc_dir ='doc/rdoc'
18
+ #rdoc.rdoc_files.include("README.rdoc", "lib/*.rb")
19
+ rdoc.rdoc_files.include("lib/*.rb")
20
+ end
@@ -0,0 +1,43 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ require_relative 'lib/artifactory/cleaner/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "artifactory-cleaner"
9
+ spec.version = Artifactory::Cleaner::VERSION
10
+ spec.authors = ["Josh Gitlin"]
11
+ spec.email = ["jgitlin@pinnacle21.com"]
12
+
13
+ spec.summary = %q{Performs maintainence tasks on Artifactory repositories}
14
+ spec.description = %q{Will provide maintainence tasks for Artifactory, like cleaning up old artifacts}
15
+ spec.homepage = "https://bitbucket.org/pinnacle21/artifactory-cleaner/src/master/"
16
+ spec.license = 'MIT'
17
+ spec.licenses = ['MIT']
18
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
19
+
20
+ #spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
21
+
22
+ #spec.metadata["homepage_uri"] = spec.homepage
23
+ spec.metadata["source_code_uri"] = "https://bitbucket.org/pinnacle21/artifactory-cleaner/src/master/"
24
+ #spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
25
+
26
+ spec.add_development_dependency "cucumber", '~> 1.3', '>= 1.3.20'
27
+ spec.add_development_dependency "aruba", '~> 0.14'
28
+ spec.add_development_dependency "rdoc"
29
+
30
+ spec.add_dependency "thor", '~> 1.0.1'
31
+ spec.add_dependency "sysexits", '>= 1.2.0'
32
+
33
+ spec.add_runtime_dependency "artifactory"
34
+
35
+ # Specify which files should be added to the gem when it is released.
36
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
37
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
38
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
39
+ end
40
+ spec.bindir = "exe"
41
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
42
+ spec.require_paths = ["lib"]
43
+ end
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$" />
6
+ <orderEntry type="inheritedJdk" />
7
+ <orderEntry type="sourceFolder" forTests="false" />
8
+ </component>
9
+ </module>
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "artifactory/cleaner"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,94 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module Artifactory - 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="module">
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
+
59
+
60
+
61
+
62
+ </div>
63
+ </nav>
64
+
65
+ <main role="main" aria-labelledby="module-Artifactory">
66
+ <h1 id="module-Artifactory" class="module">
67
+ module Artifactory
68
+ </h1>
69
+
70
+ <section class="description">
71
+
72
+ </section>
73
+
74
+
75
+ <section id="5Buntitled-5D" class="documentation-section">
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+ </section>
86
+ </main>
87
+
88
+
89
+ <footer id="validator-badges" role="contentinfo">
90
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
91
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.
92
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
93
+ </footer>
94
+