lita-pulp 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/lita/handlers/pulp.rb +4 -1
- data/lita-pulp.gemspec +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 251b3e5e9e35461d07f9e1ca8435fd1a2cf3a65c
|
4
|
+
data.tar.gz: 14107a73bf6828d8860c08c8b66e888a020fba83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13240f936e7d4cb0703183b5ad67273412d7061f095d6f0e4f340336693583f1f16f39f6f6b13587368c72d48baaeece204c46f80ecffa00ae2c8034a28ba359
|
7
|
+
data.tar.gz: 446a4b3c057f469bae655a10a3ac8dd14477b9466d0ecbc3e5471bcc5d0ec6777350075d3ba50eeccc658dab4a17227da949f38120eb95b82aafe7d86dd41b4d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Lita-Pulp Change Log
|
2
2
|
|
3
|
+
## 0.1.4
|
4
|
+
* Remove requirement of pulp_version configuration parameter, use dynamic reflection
|
5
|
+
* Add configuration for pulp_admins_group, default to :pulp_admins, repository delete/create permitted only to these groups
|
6
|
+
|
3
7
|
## 0.1.3
|
4
8
|
* create puppet rpm repository
|
5
9
|
* delete a repository
|
data/lib/lita/handlers/pulp.rb
CHANGED
@@ -11,7 +11,7 @@ module Lita
|
|
11
11
|
config :url, required: true, type: String
|
12
12
|
config :api_path, required: true, type: String
|
13
13
|
config :verify_ssl, required:true, types: [TrueClass, FalseClass], default: false
|
14
|
-
config :
|
14
|
+
config :pulp_admins_group, required:true, types: [Symbol, String, Array<String,Symbol> ], default: [:pulp_admins]
|
15
15
|
|
16
16
|
include ::PulpHelper::Misc
|
17
17
|
include ::PulpHelper::Repo
|
@@ -204,6 +204,7 @@ module Lita
|
|
204
204
|
/^pulp\s+delete\s+repo\s+(\S+)$/,
|
205
205
|
:cmd_delete_repository,
|
206
206
|
command: true,
|
207
|
+
restrict_to: config.pulp_admins_group,
|
207
208
|
help: {
|
208
209
|
t('help.cmd_delete_repository_key') => t('help.cmd_delete_repository_value')
|
209
210
|
}
|
@@ -222,6 +223,7 @@ module Lita
|
|
222
223
|
/^pulp\s+create\s+rpm\s+repo/i,
|
223
224
|
:cmd_create_rpm_repo,
|
224
225
|
command: true,
|
226
|
+
restrict_to: config.pulp_admins_group,
|
225
227
|
kwargs: {
|
226
228
|
repo_id: {
|
227
229
|
short: "r",
|
@@ -260,6 +262,7 @@ module Lita
|
|
260
262
|
/^pulp\s+create\s+puppet\s+repo/i,
|
261
263
|
:cmd_create_puppet_repo,
|
262
264
|
command: true,
|
265
|
+
restrict_to: config.pulp_admins_group,
|
263
266
|
kwargs: {
|
264
267
|
repo_id: {
|
265
268
|
short: "r",
|
data/lita-pulp.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
Gem::Specification.new do |spec|
|
3
3
|
spec.name = "lita-pulp"
|
4
|
-
spec.version = "0.1.
|
4
|
+
spec.version = "0.1.4"
|
5
5
|
spec.authors = ["Wang, Dawei"]
|
6
6
|
spec.email = ["daweiwang.gatekeeper@gmail.com"]
|
7
7
|
spec.description = "Lita bot for pulp server"
|
@@ -14,6 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
15
15
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
16
|
spec.require_paths = ["lib"]
|
17
|
+
spec.required_ruby_version = '>= 2.1.0'
|
17
18
|
|
18
19
|
spec.add_runtime_dependency "lita", ">= 4.7"
|
19
20
|
spec.add_runtime_dependency "runcible"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-pulp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wang, Dawei
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|
@@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
203
203
|
requirements:
|
204
204
|
- - ">="
|
205
205
|
- !ruby/object:Gem::Version
|
206
|
-
version:
|
206
|
+
version: 2.1.0
|
207
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
208
|
requirements:
|
209
209
|
- - ">="
|