brpm_module_brpm 0.1.28 → 0.1.29

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzliMzgwOTVjOWQ1MTZkYmU2MTNmYzZiZjUxZGZhZGU5NmJhYTYzOA==
4
+ ZjcyMjNiYmZkM2E4Njk4ZGE4NGFiYzBkMzhmNzhhMDgwZmZmNjZkNA==
5
5
  data.tar.gz: !binary |-
6
- YzdhYzk1OTlkZTQ5MzFmZGJjY2YzYWYxNGU0YzA0MGFjOTkwYmRiNQ==
6
+ ZDRiYzMzOTBmZjBiZDNiMjc0NDdlYjEzMmRkNjFhY2ZhYzFmZTk2OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzM1NmU1YTMzNGM5Yjc2MGE1YWYwYmI0NmFmOTgzYzE2ZmVlYTRkZmNjNzVl
10
- MjkwMzFlNDVjZGU3ZWMxMWQ5Nzg3YmQ4ZmQ0MWZlOWQ2ODc0MGY1MjJlYzhk
11
- Y2JlY2ZiMWJhY2ZkMjZkN2VmOTIyM2E2YzFmMDE3NmIxMzJmZmY=
9
+ YWJjYmE1NGY5MDlkYjAxZDgyMjE3ZDgyZTZmNTM1M2RmODJmY2UzMzU0YzEx
10
+ YmVlODBjN2YyZDczOTQxNmRlOGY3MGNhYzNhOTM0NmU4ZWRmOGVjZDNmZGU3
11
+ OWM2YjgwOTFmNzUxZTdhNGEyMTY3NmJkZWExNTRlYjI1NDdkNzk=
12
12
  data.tar.gz: !binary |-
13
- NjIyYTQ3YmU3NGI0OGE4OTY0M2VmODFhZWUzMTg1NjBmMjQxYjFmMTRiNTMx
14
- YzFkMWZlZWU0ODJiZmE3Y2Y5OTdmZDcwZTZlZDA2NzM2ZTAyNTE5MjZkMTIz
15
- YjVjNjc5ZTdhYWJkY2RlOGU5ZTcwOGJhMjIxNjVmNzMxOTQwOGY=
13
+ NDkzNjQ4NzlmMzY1NThlZGJlMjVjYzZkMjM3ZjdmZjliY2QzYzJiMjg5MmRj
14
+ ZjVjMzMwZmY0M2EwM2M0Mzc2ZDNjNTJmNDNhMmU4NGVlNjM2ZmMyMzNiNDZl
15
+ ZjhlZmVkOThiZDQyMDExNjQ1NjM5NmE1MDRjODZkYTM5NWQ5YzM=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brpm_module_brpm (0.1.28)
4
+ brpm_module_brpm (0.1.29)
5
5
  brpm_content (>= 0.1.11)
6
6
 
7
7
  GEM
@@ -10,7 +10,7 @@ GEM
10
10
  akami (1.2.2)
11
11
  gyoku (>= 0.4.0)
12
12
  nokogiri
13
- brpm_content (0.1.16)
13
+ brpm_content (0.1.43)
14
14
  capistrano (= 2.15.5)
15
15
  json
16
16
  rest-client
data/config.yml CHANGED
@@ -1,4 +1,4 @@
1
- version: 0.1.28
1
+ version: 0.1.29
2
2
 
3
3
  author: Niek Bartholomeus
4
4
  email: niek.bartholomeus@gmail.com
@@ -1695,7 +1695,6 @@ class BrpmRestClient
1695
1695
  end
1696
1696
 
1697
1697
  def create_or_update_script(script)
1698
-
1699
1698
  BrpmAuto.log "Checking if the corresponding script already exists ..."
1700
1699
  existing_script = get_script_by_name(script["name"])
1701
1700
 
@@ -1725,20 +1724,12 @@ class BrpmRestClient
1725
1724
  script
1726
1725
  end
1727
1726
 
1728
- def delete_script_by_name(script_name)
1729
- script = get_script_by_name(script_name)
1730
-
1731
- if script.nil?
1732
- BrpmAuto.log "This script doesn't exist. Continuing."
1733
- return
1734
- end
1735
-
1736
- result = brpm_delete "v1/scripts/#{script["id"]}"
1727
+ def delete_script(script_id)
1728
+ result = brpm_delete "v1/scripts/#{script_id}"
1737
1729
 
1738
1730
  unless result["status"] == "success"
1739
1731
  raise "Could not delete script: #{result["error_message"]}"
1740
1732
  end
1741
-
1742
1733
  end
1743
1734
 
1744
1735
  def get_work_task_by_name(name)
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.28
4
+ version: 0.1.29
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-08-24 00:00:00.000000000 Z
11
+ date: 2015-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brpm_content