brpm_module_brpm 0.1.11 → 0.1.12
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 +8 -8
- data/config.yml +1 -1
- data/lib/brpm_rest_client.rb +16 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzRlZTZmNmIyNmFkMGIxNDg0Y2RiZWE2MmJjZTExMGI0MTBmN2E3Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTE1MTgwY2FjYmQxN2NkMTExOGU0Mzk1NDAwNmQ1YzJhYjI2Y2M4Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDQxMjBlYjJlMjU3NTQ2NTUzMzFhMmVlM2YxNWM3NDJiMzMwNDllNWZiNDRj
|
10
|
+
NjQ3OGUyMWFiNjViMTc4ZGY3ZmRmZWI2Yjg2M2UzNGIxNDY2ZTJhYWIxZGY0
|
11
|
+
NWY5YWY0ZDIxNTljMWUzMDQ5OWQyMGE1YWQzOTJlNjNjZDMyYTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGZkZmVjNWZjOTUxNzlhNmQ5MjMyNTg1NmM1NjA5OTM2MzliNzRiZDU3OGMy
|
14
|
+
ZWE2NTU4NDY2Y2U4ZTNjZjAyNDM5YmZiMmRlMGI2NDgzOTZmMjJhNDQzNGVk
|
15
|
+
MTIxOTg5M2ZmY2M4N2I4Y2Q5NjBiODVhMDExZTFkMTA4OWM5ZDg=
|
data/config.yml
CHANGED
data/lib/brpm_rest_client.rb
CHANGED
@@ -1434,6 +1434,22 @@ class BrpmRestClient
|
|
1434
1434
|
end
|
1435
1435
|
end
|
1436
1436
|
|
1437
|
+
def get_script_by_name(name)
|
1438
|
+
result = brpm_get "v1/scripts?filters[name]=#{name}"
|
1439
|
+
|
1440
|
+
if result["status"] == "success"
|
1441
|
+
result_hash = result["response"].first
|
1442
|
+
else
|
1443
|
+
if result["code"] == 404
|
1444
|
+
result_hash = nil
|
1445
|
+
else
|
1446
|
+
raise "Could not find script #{name}: #{result["error_message"]}"
|
1447
|
+
end
|
1448
|
+
end
|
1449
|
+
|
1450
|
+
result_hash
|
1451
|
+
end
|
1452
|
+
|
1437
1453
|
def get_scripts_by(filter)
|
1438
1454
|
filter_string = "?"
|
1439
1455
|
filter.each do |key, value|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brpm_module_brpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Niek Bartholomeus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: brpm_content
|