megam_api 1.5.5 → 1.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/megam/api/version.rb +1 -1
- data/lib/megam/mixins/common_deployable.rb +12 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9236e510b959dbb6435f5e138feba7cffa2f4c5d
|
4
|
+
data.tar.gz: 4eff4047d9a5d72f4031d529e44ac247b03a7d3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 786518abd4685b0cfa9dd19725d15a4167efa02d5bd45b9a65cc58e0ed0915d5c2b9a0f1d9f5461b1ec6d9eae970b4cd949d971f71a1de2d189500e0412b0b4e
|
7
|
+
data.tar.gz: 5af08775fdf20fc7f2f126e02e5a78add35b6edcf7c8dcc269546d9260e04259b62eb1df1883d4356f86c93ef6733201437f820a464040090bf0004a52973ced
|
data/lib/megam/api/version.rb
CHANGED
@@ -6,9 +6,9 @@ module Megam
|
|
6
6
|
include Nilavu::MegamAttributes
|
7
7
|
attr_reader :status, :inputs, :tosca_type
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
DEFAULT_VERTICE_PREFIX = 'vertice'.freeze
|
10
|
+
DEFAULT_BITNAMI_PREFIX = 'bitnami'.freeze
|
11
|
+
DEFAULT_DOCKER_PREFIX = 'docker'.freeze
|
12
12
|
|
13
13
|
ATTRIBUTES = [
|
14
14
|
:tosca_type,
|
@@ -37,9 +37,15 @@ module Megam
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def bld_toscatype(params)
|
40
|
-
|
41
|
-
|
42
|
-
@tosca_type =
|
40
|
+
case params[:scm_name]
|
41
|
+
when DEFAULT_BITNAMI_PREFIX
|
42
|
+
@tosca_type = DEFAULT_BITNAMI_PREFIX + ".#{params[:cattype].downcase}.#{params[:mkp_name].downcase}" if params[:cattype] != nil && params[:mkp_name] != nil
|
43
|
+
when DEFAULT_DOCKER_PREFIX
|
44
|
+
@tosca_type = DEFAULT_DOCKER_PREFIX + ".#{params[:cattype].downcase}.#{params[:mkp_name].downcase}" if params[:cattype] != nil && params[:mkp_name] != nil
|
45
|
+
else
|
46
|
+
@tosca_type = DEFAULT_VERTICE_PREFIX + ".#{params[:cattype].downcase}.#{params[:mkp_name].downcase}" if params[:cattype] != nil && params[:mkp_name] != nil
|
47
|
+
end
|
48
|
+
|
43
49
|
end
|
44
50
|
end
|
45
51
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: megam_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajthilak, Kishorekumar Neelamegam, Ranjitha R, Rajesh Rajagopalan, Thomas Alrin,
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-08-
|
12
|
+
date: 2016-08-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: excon
|