migGem 0.0.0
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 +15 -0
- data/lib/migGem.rb +23 -0
- metadata +44 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
N2M3NWY1ODljNzQ1NzJkNzU0ZGY4ZGQwMTQzZGVmNWRkZjM0ODQxNg==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
YmM5NDVmZmU0MjViMTkyZmJkMzc3NGU1ZGE0M2I1OTljNzk1NTBiZQ==
|
|
7
|
+
!binary "U0hBNTEy":
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
NTU3ODFiOTkwNjYyZmZhNWQxNjBhNGYzOTJmMTNmYjY1NGJmNGI3MGNiMGFj
|
|
10
|
+
ZWI2ODA5YTQxZmM5NjJkMjVmYjIzOGY5NmM3NTE3NjA0ZTgxMWIwODE1YjBj
|
|
11
|
+
NmRmODY5MGM5M2JmNDllODNkMjU1MjBlMmZhNDhkNjU1Zjg4Y2Q=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
NDExZTkzYzNkNjQwNjNiY2NhYjI5OWQ3ZTEwNDg4Nzc2MWFkNzkwNWQyMTNi
|
|
14
|
+
OTM0NTgwZjg2MTZjNzkyYzIwZjM0NjIwMGVlOWEwODhhYjAxMWY0NGU4Zjk2
|
|
15
|
+
Y2FjM2VjOGJiNDU0YzViMmViMDliZWQ3N2NkMGIzMDYyZWUxY2Q=
|
data/lib/migGem.rb
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
require 'active_support/core_ext/hash'
|
|
2
|
+
|
|
3
|
+
class XmlStateFilter
|
|
4
|
+
STATUS_COMPLETE = "complete"
|
|
5
|
+
STATUS_FAILED = "failed"
|
|
6
|
+
STATUS_ERROR = "error"
|
|
7
|
+
|
|
8
|
+
def filter(inputs, outputs)
|
|
9
|
+
xml_hash= Hash.from_xml(inputs['xml_response'])
|
|
10
|
+
|
|
11
|
+
statuscode = xml_hash["mamResponse"]["responseContext"]["statusCode"]
|
|
12
|
+
|
|
13
|
+
outputs['statusCode']=statuscode
|
|
14
|
+
|
|
15
|
+
if statuscode == 'SUCCESS'
|
|
16
|
+
@status = STATUS_COMPLETE
|
|
17
|
+
elsif statuscode == 'FAILED'
|
|
18
|
+
@status = STATUS_FAILED
|
|
19
|
+
else
|
|
20
|
+
@status = STATUS_ERROR
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: migGem
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Dieter Vandersloten
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2015-11-18 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Gem build for Aspera orchestrator with all custom Ruby code
|
|
14
|
+
email: dieter.vandersloten@vrt.be
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/migGem.rb
|
|
20
|
+
homepage:
|
|
21
|
+
licenses:
|
|
22
|
+
- MIT
|
|
23
|
+
metadata: {}
|
|
24
|
+
post_install_message:
|
|
25
|
+
rdoc_options: []
|
|
26
|
+
require_paths:
|
|
27
|
+
- lib
|
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ! '>='
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
34
|
+
requirements:
|
|
35
|
+
- - ! '>='
|
|
36
|
+
- !ruby/object:Gem::Version
|
|
37
|
+
version: '0'
|
|
38
|
+
requirements: []
|
|
39
|
+
rubyforge_project:
|
|
40
|
+
rubygems_version: 2.0.3
|
|
41
|
+
signing_key:
|
|
42
|
+
specification_version: 4
|
|
43
|
+
summary: Gem for orchestrator
|
|
44
|
+
test_files: []
|