runcible 1.3.5 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/runcible.rb +0 -23
- data/lib/runcible/base.rb +0 -20
- data/lib/runcible/extensions/consumer.rb +0 -23
- data/lib/runcible/extensions/consumer_group.rb +0 -23
- data/lib/runcible/extensions/distribution.rb +0 -23
- data/lib/runcible/extensions/docker_image.rb +0 -23
- data/lib/runcible/extensions/errata.rb +0 -23
- data/lib/runcible/extensions/ostree_branch.rb +9 -0
- data/lib/runcible/extensions/package_category.rb +0 -23
- data/lib/runcible/extensions/package_group.rb +0 -23
- data/lib/runcible/extensions/puppet_module.rb +0 -23
- data/lib/runcible/extensions/python_package.rb +9 -0
- data/lib/runcible/extensions/repository.rb +0 -23
- data/lib/runcible/extensions/rpm.rb +0 -23
- data/lib/runcible/extensions/unit.rb +2 -27
- data/lib/runcible/extensions/yum_repo_metadata_file.rb +0 -23
- data/lib/runcible/instance.rb +0 -23
- data/lib/runcible/models/distributor.rb +0 -23
- data/lib/runcible/models/docker_distributor.rb +1 -24
- data/lib/runcible/models/docker_importer.rb +1 -25
- data/lib/runcible/models/export_distributor.rb +1 -24
- data/lib/runcible/models/importer.rb +8 -23
- data/lib/runcible/models/iso_distributor.rb +1 -24
- data/lib/runcible/models/iso_importer.rb +0 -27
- data/lib/runcible/models/nodes_http_distributor.rb +0 -23
- data/lib/runcible/models/ostree_distributor.rb +25 -0
- data/lib/runcible/models/ostree_importer.rb +22 -0
- data/lib/runcible/models/puppet_distributor.rb +0 -23
- data/lib/runcible/models/puppet_importer.rb +1 -24
- data/lib/runcible/models/puppet_install_distributor.rb +0 -23
- data/lib/runcible/models/python_distributor.rb +23 -0
- data/lib/runcible/models/python_importer.rb +22 -0
- data/lib/runcible/models/yum_clone_distributor.rb +0 -23
- data/lib/runcible/models/yum_distributor.rb +2 -25
- data/lib/runcible/models/yum_importer.rb +0 -29
- data/lib/runcible/resources/consumer.rb +0 -23
- data/lib/runcible/resources/consumer_group.rb +0 -23
- data/lib/runcible/resources/content.rb +0 -23
- data/lib/runcible/resources/event_notifier.rb +0 -23
- data/lib/runcible/resources/repository.rb +0 -23
- data/lib/runcible/resources/repository_group.rb +0 -23
- data/lib/runcible/resources/repository_schedule.rb +0 -23
- data/lib/runcible/resources/role.rb +0 -23
- data/lib/runcible/resources/task.rb +0 -23
- data/lib/runcible/resources/unit.rb +0 -23
- data/lib/runcible/resources/user.rb +0 -23
- data/lib/runcible/version.rb +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3e4335860cb7571868453dcaa69af8802809594
|
4
|
+
data.tar.gz: 6f79b035df3735a718b06dcc9c4c604fc0eebe8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9aaee0edf5378d33db02951dc212396127067fd40bb83d5fcee40b149bf7630227d820c446f8a87ac90ad568c23af8f7e29316a743ddb4b9b4dda561d975a7b
|
7
|
+
data.tar.gz: a90259e9c86e423c03241a60476eb122fbd71606d42edde3ed593d06ba8a4541f751f743dafd3d2cfb2ca489070b3ef58be9b83ddb1b1b6bea59e52f9cafa5eb
|
data/README.md
CHANGED
@@ -4,12 +4,14 @@
|
|
4
4
|
|
5
5
|
Exposing Pulp's juiciest parts. http://www.pulpproject.org/
|
6
6
|
|
7
|
-
Latest Live Tested Version: **pulp-server-2.6.
|
7
|
+
Latest Live Tested Version: **pulp-server-2.6.2-1.el7.noarch**
|
8
8
|
|
9
9
|
Current stable Runcible: https://github.com/Katello/runcible/tree/0.3
|
10
10
|
|
11
11
|
For in-depth class and method documentation: http://katello.github.com/runcible/
|
12
12
|
|
13
|
+
Please file new issues here: [Readmine](http://projects.theforeman.org/projects/runcible/issues/new)
|
14
|
+
|
13
15
|
## Installation
|
14
16
|
|
15
17
|
Add this line to your application's Gemfile:
|
data/lib/runcible.rb
CHANGED
@@ -1,26 +1,3 @@
|
|
1
|
-
# Copyright (c) 2012 Red Hat
|
2
|
-
#
|
3
|
-
# MIT License
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
# a copy of this software and associated documentation files (the
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
# the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be
|
14
|
-
# included in all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
-
|
24
1
|
# require "runcible/version"
|
25
2
|
# require "runcible/base"
|
26
3
|
|
data/lib/runcible/base.rb
CHANGED
@@ -1,23 +1,3 @@
|
|
1
|
-
#
|
2
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
3
|
-
# a copy of this software and associated documentation files (the
|
4
|
-
# "Software"), to deal in the Software without restriction, including
|
5
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
6
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
7
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
8
|
-
# the following conditions:
|
9
|
-
#
|
10
|
-
# The above copyright notice and this permission notice shall be
|
11
|
-
# included in all copies or substantial portions of the Software.
|
12
|
-
#
|
13
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
14
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
15
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
16
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
17
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
18
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
19
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
20
|
-
|
21
1
|
require 'rest_client'
|
22
2
|
require 'oauth'
|
23
3
|
require 'json'
|
@@ -1,26 +1,3 @@
|
|
1
|
-
# Copyright (c) 2012
|
2
|
-
#
|
3
|
-
# MIT License
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
# a copy of this software and associated documentation files (the
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
# the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be
|
14
|
-
# included in all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
-
|
24
1
|
module Runcible
|
25
2
|
module Extensions
|
26
3
|
class Consumer < Runcible::Resources::Consumer
|
@@ -1,26 +1,3 @@
|
|
1
|
-
# Copyright (c) 2012
|
2
|
-
#
|
3
|
-
# MIT License
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
# a copy of this software and associated documentation files (the
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
# the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be
|
14
|
-
# included in all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
-
|
24
1
|
module Runcible
|
25
2
|
module Extensions
|
26
3
|
class ConsumerGroup < Runcible::Resources::ConsumerGroup
|
@@ -1,26 +1,3 @@
|
|
1
|
-
# Copyright (c) 2012 Red Hat
|
2
|
-
#
|
3
|
-
# MIT License
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
# a copy of this software and associated documentation files (the
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
# the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be
|
14
|
-
# included in all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
-
|
24
1
|
module Runcible
|
25
2
|
module Extensions
|
26
3
|
class Distribution < Runcible::Extensions::Unit
|
@@ -1,26 +1,3 @@
|
|
1
|
-
# Copyright (c) 2014 Red Hat
|
2
|
-
#
|
3
|
-
# MIT License
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
# a copy of this software and associated documentation files (the
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
# the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be
|
14
|
-
# included in all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
-
|
24
1
|
module Runcible
|
25
2
|
module Extensions
|
26
3
|
class DockerImage < Runcible::Extensions::Unit
|
@@ -1,26 +1,3 @@
|
|
1
|
-
# Copyright (c) 2012 Red Hat
|
2
|
-
#
|
3
|
-
# MIT License
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
# a copy of this software and associated documentation files (the
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
# the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be
|
14
|
-
# included in all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
-
|
24
1
|
module Runcible
|
25
2
|
module Extensions
|
26
3
|
class Errata < Runcible::Extensions::Unit
|
@@ -1,26 +1,3 @@
|
|
1
|
-
# Copyright (c) 2012
|
2
|
-
#
|
3
|
-
# MIT License
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
# a copy of this software and associated documentation files (the
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
# the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be
|
14
|
-
# included in all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
-
|
24
1
|
module Runcible
|
25
2
|
module Extensions
|
26
3
|
class PackageCategory < Runcible::Extensions::Unit
|
@@ -1,26 +1,3 @@
|
|
1
|
-
# Copyright (c) 2012
|
2
|
-
#
|
3
|
-
# MIT License
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
# a copy of this software and associated documentation files (the
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
# the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be
|
14
|
-
# included in all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
-
|
24
1
|
module Runcible
|
25
2
|
module Extensions
|
26
3
|
class PackageGroup < Runcible::Extensions::Unit
|
@@ -1,26 +1,3 @@
|
|
1
|
-
# Copyright (c) 2013 Red Hat
|
2
|
-
#
|
3
|
-
# MIT License
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
# a copy of this software and associated documentation files (the
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
# the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be
|
14
|
-
# included in all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
-
|
24
1
|
module Runcible
|
25
2
|
module Extensions
|
26
3
|
class PuppetModule < Runcible::Extensions::Unit
|
@@ -1,26 +1,3 @@
|
|
1
|
-
# Copyright (c) 2012 Red Hat
|
2
|
-
#
|
3
|
-
# MIT License
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
# a copy of this software and associated documentation files (the
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
# the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be
|
14
|
-
# included in all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
-
|
24
1
|
module Runcible
|
25
2
|
module Extensions
|
26
3
|
class Repository < Runcible::Resources::Repository
|
@@ -1,26 +1,3 @@
|
|
1
|
-
# Copyright (c) 2012 Red Hat
|
2
|
-
#
|
3
|
-
# MIT License
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
# a copy of this software and associated documentation files (the
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
# the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be
|
14
|
-
# included in all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
-
|
24
1
|
module Runcible
|
25
2
|
module Extensions
|
26
3
|
class Rpm < Runcible::Extensions::Unit
|
@@ -1,26 +1,3 @@
|
|
1
|
-
# Copyright (c) 2012
|
2
|
-
#
|
3
|
-
# MIT License
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
# a copy of this software and associated documentation files (the
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
# the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be
|
14
|
-
# included in all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
-
|
24
1
|
module Runcible
|
25
2
|
module Extensions
|
26
3
|
class Unit < Runcible::Resources::Unit
|
@@ -45,7 +22,6 @@ module Runcible
|
|
45
22
|
# @param [Array] id the content ID of the content to retrieve
|
46
23
|
# @return [RestClient::Response] the requested content
|
47
24
|
def find(id, optional = {})
|
48
|
-
optional[:include_repos] ||= true
|
49
25
|
find_all([id], optional).first
|
50
26
|
end
|
51
27
|
|
@@ -54,7 +30,7 @@ module Runcible
|
|
54
30
|
# @param [Array] ids list of content IDs to retrieve
|
55
31
|
# @return [RestClient::Response] list of content
|
56
32
|
def find_all(ids, optional = {})
|
57
|
-
optional[:include_repos]
|
33
|
+
optional[:include_repos] = optional.fetch(:include_repos, true)
|
58
34
|
search(content_type, { :filters => {'id' => {'$in' => ids}} }, optional)
|
59
35
|
end
|
60
36
|
|
@@ -63,7 +39,6 @@ module Runcible
|
|
63
39
|
# @param [Array] id the unit ID of the content to retrieve
|
64
40
|
# @return [RestClient::Response] the requested content
|
65
41
|
def find_by_unit_id(id, optional = {})
|
66
|
-
optional[:include_repos] ||= true
|
67
42
|
find_all_by_unit_ids([id], [], optional).first
|
68
43
|
end
|
69
44
|
|
@@ -73,7 +48,7 @@ module Runcible
|
|
73
48
|
# @param [Array] fields optional list of to retrieve
|
74
49
|
# @return [RestClient::Response] list of content
|
75
50
|
def find_all_by_unit_ids(ids, fields = [], optional = {})
|
76
|
-
optional[:include_repos]
|
51
|
+
optional[:include_repos] = optional.fetch(:include_repos, true)
|
77
52
|
criteria = { :filters => { :_id => { '$in' => ids } } }
|
78
53
|
criteria[:fields] = fields unless fields.empty?
|
79
54
|
search(content_type, criteria, optional)
|
@@ -1,26 +1,3 @@
|
|
1
|
-
# Copyright (c) 2012 Red Hat
|
2
|
-
#
|
3
|
-
# MIT License
|
4
|
-
#
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
-
# a copy of this software and associated documentation files (the
|
7
|
-
# "Software"), to deal in the Software without restriction, including
|
8
|
-
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
# the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be
|
14
|
-
# included in all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
-
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
-
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
-
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
-
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
-
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
-
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
-
|
24
1
|
module Runcible
|
25
2
|
module Extensions
|
26
3
|
class YumRepoMetadataFile < Runcible::Extensions::Unit
|