runcible 1.9.2 → 1.9.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5e2768d1c50f981680ffd2ef255bd908601ac69
4
- data.tar.gz: 85d6223d7d89ba2f62eded965ac7f336bbf21137
3
+ metadata.gz: 76157976f6e304d3dfe616b27c0654c7c741f1fe
4
+ data.tar.gz: '07728f8c0121e8249f477cea4d9feedaf9f425f7'
5
5
  SHA512:
6
- metadata.gz: cdc1abe11d36494d1fd6d4d644c64084bbbb079412f75ce6fb9a8679e8b56a63285e9e8feee2c4126c28548939cb07953e4c55c58cf574951cf13c3cda298b1b
7
- data.tar.gz: 83a280e54b3785a874cd0d44a79b88877140060f88c7a2cc8031d98753b54336a336f842c6509fe4c6fc8b566ce46a2ba661b1880cbfd903a893b73ec5fbb0ca
6
+ metadata.gz: 371df3fdc1f5fbe101d8bbc4e0edb7d2547ffbadd0b7065b3a69d60b130a53d5361abcc9bca218aedec0c8f508fe8a5613bd917a6f7ec4bb7909e716f5733c3e
7
+ data.tar.gz: b3a2c50a5fbdc2517b136b704ed3d6112aec65185212f995e9a1d43a1a7fc0cce34308acff8d673e012cc6f7d3dd5b8cb16242ccc28da6afda923d69c632ee7e
@@ -1,6 +1,6 @@
1
1
  module Runcible
2
2
  module Resources
3
- # @see https://pulp-dev-guide.readthedocs.org/en/latest/rest-api/consumer/index.html
3
+ # @see https://docs.pulpproject.org/dev-guide/integration/rest-api/consumer/index.html
4
4
  class Consumer < Runcible::Base
5
5
  # Generates the API path for Consumers
6
6
  #
@@ -2,7 +2,7 @@ require 'active_support/core_ext/hash'
2
2
 
3
3
  module Runcible
4
4
  module Resources
5
- # @see https://pulp-dev-guide.readthedocs.org/en/latest/rest-api/consumer/group/index.html
5
+ # @see https://docs.pulpproject.org/dev-guide/integration/rest-api/consumer/group/index.html
6
6
  class ConsumerGroup < Runcible::Base
7
7
  # Generates the API path for Consumer Groups
8
8
  #
@@ -2,7 +2,7 @@ require 'active_support/core_ext/hash'
2
2
 
3
3
  module Runcible
4
4
  module Resources
5
- # @see https://pulp-dev-guide.readthedocs.org/en/latest/rest-api/content/index.html
5
+ # @see https://docs.pulpproject.org/dev-guide/integration/rest-api/content/index.html
6
6
  class Content < Runcible::Base
7
7
  # Generates the API path for Contents
8
8
  #
@@ -1,6 +1,6 @@
1
1
  module Runcible
2
2
  module Resources
3
- # @see https://pulp-dev-guide.readthedocs.org/en/latest/events/index.html
3
+ # @see https://docs.pulpproject.org/dev-guide/integration/events/index.html
4
4
  class EventNotifier < Runcible::Base
5
5
  class EventTypes
6
6
  REPO_SYNC_COMPLETE = 'repo.sync.finish'.freeze
@@ -2,7 +2,7 @@ require 'active_support/core_ext/hash'
2
2
 
3
3
  module Runcible
4
4
  module Resources
5
- # @see https://pulp-dev-guide.readthedocs.org/en/latest/rest-api/repo/index.html
5
+ # @see https://docs.pulpproject.org/dev-guide/integration/rest-api/repo/index.html
6
6
  class Repository < Runcible::Base
7
7
  # Generates the API path for Repositories
8
8
  #
@@ -98,6 +98,15 @@ module Runcible
98
98
  call(:post, "#{path(id)}actions/sync/", :payload => { :optional => optional })
99
99
  end
100
100
 
101
+ # Downloads all units in a repository (useful in the case of on_demand repositories)
102
+ #
103
+ # @param [String] id the id of the repository
104
+ # @param [Hash] optional container for all optional parameters
105
+ # @return [RestClient::Response]
106
+ def download(id, optional = {})
107
+ call(:post, "#{path(id)}actions/download/", :payload => { :optional => optional })
108
+ end
109
+
101
110
  # History of all sync actions on a repository
102
111
  #
103
112
  # @param [String] id the id of the repository
@@ -2,7 +2,7 @@ require 'active_support/core_ext/hash'
2
2
 
3
3
  module Runcible
4
4
  module Resources
5
- # @see https://pulp-dev-guide.readthedocs.org/en/latest/integration/rest-api/repo/groups/
5
+ # @see https://docs.pulpproject.org/dev-guide/integration/integration/rest-api/repo/groups/
6
6
  class RepositoryGroup < Runcible::Base
7
7
  # Generates the API path for Repository Groups
8
8
  #
@@ -2,7 +2,7 @@ require 'active_support/core_ext/hash'
2
2
 
3
3
  module Runcible
4
4
  module Resources
5
- # @see https://pulp-dev-guide.readthedocs.org/en/latest/rest-api/repo/sync.html#scheduling-a-sync
5
+ # @see https://docs.pulpproject.org/dev-guide/integration/rest-api/repo/sync.html#scheduling-a-sync
6
6
  class RepositorySchedule < Runcible::Base
7
7
  # Generates the API path for Repository Schedules
8
8
  #
@@ -1,6 +1,6 @@
1
1
  module Runcible
2
2
  module Resources
3
- # @see https://pulp-dev-guide.readthedocs.org/en/latest/rest-api/role/index.html
3
+ # @see https://docs.pulpproject.org/dev-guide/integration/rest-api/role/index.html
4
4
  class Role < Runcible::Base
5
5
  # Generates the API path for Roles
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module Runcible
2
2
  module Resources
3
- # @see https://pulp-dev-guide.readthedocs.org/en/latest/rest-api/dispatch/index.html
3
+ # @see https://docs.pulpproject.org/dev-guide/integration/rest-api/dispatch/index.html
4
4
  class Task < Runcible::Base
5
5
  # Generates the API path for Tasks
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module Runcible
2
2
  module Resources
3
- # @see https://pulp-dev-guide.readthedocs.org/en/latest/rest-api/dispatch/index.html
3
+ # @see https://docs.pulpproject.org/dev-guide/integration/rest-api/dispatch/index.html
4
4
  class TaskGroup < Runcible::Base
5
5
  # Generates the API path for Tasks
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module Runcible
2
2
  module Resources
3
- # @see https://pulp-dev-guide.readthedocs.org/en/latest/rest-api/content/index.html
3
+ # @see https://docs.pulpproject.org/dev-guide/integration/rest-api/content/index.html
4
4
  class Unit < Runcible::Base
5
5
  # Generates the API path for Units
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module Runcible
2
2
  module Resources
3
- # @see https://pulp-dev-guide.readthedocs.org/en/latest/rest-api/user/index.html
3
+ # @see https://docs.pulpproject.org/dev-guide/integration/rest-api/user/index.html
4
4
  class User < Runcible::Base
5
5
  # Generates the API path for Users
6
6
  #
@@ -1,3 +1,3 @@
1
1
  module Runcible
2
- VERSION = '1.9.2'.freeze
2
+ VERSION = '1.9.3'.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: 1.9.2
4
+ version: 1.9.3
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-02-10 00:00:00.000000000 Z
11
+ date: 2017-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  version: '0'
198
198
  requirements: []
199
199
  rubyforge_project:
200
- rubygems_version: 2.5.1
200
+ rubygems_version: 2.5.2
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: ''