runcible 2.3.0 → 2.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e738d6c452aadce878c8e58877396673dc0b5ef
4
- data.tar.gz: 803f303cb9d525caf40151ffaacd4910a61b3699
3
+ metadata.gz: 07647e5e9124ae1a98b9e265b77605b41ad9eb17
4
+ data.tar.gz: f17db2e223873f923e8294dd6e7ff5b6a1484c43
5
5
  SHA512:
6
- metadata.gz: 861c9746eba5a31502919677cea137c663da3f23c5b5ce22c58cbbb66deccfa1290aab12e10640902a0d21bc4ae879067b271f3ef73c607950129af656dedbbb
7
- data.tar.gz: 0da29c16059fd605acad9ab6e1683cdcd704fbe6d0eab3ab48cac67352f8418b46738bcdcfe40886d465e4dac9ba01e9ba2da77acdef2d69200e23cf12bde282
6
+ metadata.gz: 6198afbbafc178667d62525d5b191c8ee2c133dcd3ac2f2eb3282b9c42653ee7cec0c6987011228f869a4c7aa3ebe9508989b282be032913cac2e842c31908ae
7
+ data.tar.gz: 57927f1f630bf7a56963853b0bc035eac8bfe78410a9eedb7be4701e79afe914e1fc116498cbacad369dc64385c7b577f787f464fe84182a5afd323c93fcc43e
@@ -0,0 +1,24 @@
1
+ module Runcible
2
+ module Extensions
3
+ class Deb < Runcible::Extensions::Unit
4
+ def self.content_type
5
+ 'deb'
6
+ end
7
+
8
+ # This function is not implemented for DEBs since they do not have content IDs
9
+ def find
10
+ fail NotImplementedError
11
+ end
12
+
13
+ # This function is not implemented for DEBs since they do not have content IDs
14
+ def find_all
15
+ fail NotImplementedError
16
+ end
17
+
18
+ # This function is not implemented for DEBs since they do not have content IDs
19
+ def unassociate_ids_from_repo(repo_id, ids)
20
+ fail NotImplementedError
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ module Runcible
2
+ module Extensions
3
+ class DebComponent < Runcible::Extensions::Unit
4
+ def self.content_type
5
+ 'deb_component'
6
+ end
7
+
8
+ # This function is not implemented for Components since they do not have content IDs
9
+ def find
10
+ fail NotImplementedError
11
+ end
12
+
13
+ # This function is not implemented for Components since they do not have content IDs
14
+ def find_all
15
+ fail NotImplementedError
16
+ end
17
+
18
+ # This function is not implemented for Components since they do not have content IDs
19
+ def unassociate_ids_from_repo(repo_id, ids)
20
+ fail NotImplementedError
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ module Runcible
2
+ module Extensions
3
+ class DebRelease < Runcible::Extensions::Unit
4
+ def self.content_type
5
+ 'deb_release'
6
+ end
7
+
8
+ # This function is not implemented for Releases since they do not have content IDs
9
+ def find
10
+ fail NotImplementedError
11
+ end
12
+
13
+ # This function is not implemented for Releases since they do not have content IDs
14
+ def find_all
15
+ fail NotImplementedError
16
+ end
17
+
18
+ # This function is not implemented for Releases since they do not have content IDs
19
+ def unassociate_ids_from_repo(repo_id, ids)
20
+ fail NotImplementedError
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,34 @@
1
+ require 'active_support/json'
2
+ require 'securerandom'
3
+
4
+ module Runcible
5
+ module Models
6
+ class DebDistributor < Distributor
7
+ #required attributes
8
+ attr_accessor 'relative_url', 'http', 'https'
9
+ #optional attributes
10
+ attr_accessor 'auth_cert', 'auth_ca',
11
+ 'https_ca', 'gpgkey', 'generate_metadata',
12
+ 'checksum_type', 'skip', 'https_publish_dir', 'http_publish_dir',
13
+ 'publish_default_release'
14
+
15
+ def initialize(relative_url, http, https, params = {})
16
+ @relative_url = relative_url
17
+ @http = http
18
+ @https = https
19
+ super(params)
20
+ end
21
+
22
+ def self.type_id
23
+ 'deb_distributor'
24
+ end
25
+
26
+ def config
27
+ to_ret = as_json
28
+ to_ret.delete('auto_publish')
29
+ to_ret.delete('id')
30
+ to_ret
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,26 @@
1
+ module Runcible
2
+ module Models
3
+ class DebImporter < Importer
4
+ ID = 'deb_importer'.freeze
5
+ REPO_TYPE = 'deb-repo'.freeze
6
+ DOWNLOAD_IMMEDIATE = 'immediate'.freeze
7
+ DOWNLOAD_ON_DEMAND = 'on_demand'.freeze
8
+ DOWNLOAD_BACKGROUND = 'background'.freeze
9
+ DOWNLOAD_POLICIES = [DOWNLOAD_IMMEDIATE, DOWNLOAD_ON_DEMAND, DOWNLOAD_BACKGROUND].freeze
10
+
11
+ attr_accessor 'download_policy', 'releases', 'components', 'architectures'
12
+
13
+ def id
14
+ DebImporter::ID
15
+ end
16
+
17
+ def repo_type
18
+ DebImporter::REPO_TYPE
19
+ end
20
+
21
+ def config
22
+ as_json
23
+ end
24
+ end
25
+ end
26
+ end
@@ -1,3 +1,3 @@
1
1
  module Runcible
2
- VERSION = '2.3.0'.freeze
2
+ VERSION = '2.4.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runcible
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric D Helms, Justin Sherrill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-20 00:00:00.000000000 Z
11
+ date: 2017-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -130,6 +130,9 @@ files:
130
130
  - lib/runcible/base.rb
131
131
  - lib/runcible/extensions/consumer.rb
132
132
  - lib/runcible/extensions/consumer_group.rb
133
+ - lib/runcible/extensions/deb.rb
134
+ - lib/runcible/extensions/deb_component.rb
135
+ - lib/runcible/extensions/deb_release.rb
133
136
  - lib/runcible/extensions/distribution.rb
134
137
  - lib/runcible/extensions/docker_image.rb
135
138
  - lib/runcible/extensions/docker_manifest.rb
@@ -148,6 +151,8 @@ files:
148
151
  - lib/runcible/extensions/unit.rb
149
152
  - lib/runcible/extensions/yum_repo_metadata_file.rb
150
153
  - lib/runcible/instance.rb
154
+ - lib/runcible/models/deb_distributor.rb
155
+ - lib/runcible/models/deb_importer.rb
151
156
  - lib/runcible/models/distributor.rb
152
157
  - lib/runcible/models/docker_distributor.rb
153
158
  - lib/runcible/models/docker_importer.rb