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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7866a6b120fce98ec62f3fa6345d8dde1d905ac6
4
- data.tar.gz: b6561f52d4c4814cd502c17a9706fb60dc366235
3
+ metadata.gz: 9236e510b959dbb6435f5e138feba7cffa2f4c5d
4
+ data.tar.gz: 4eff4047d9a5d72f4031d529e44ac247b03a7d3c
5
5
  SHA512:
6
- metadata.gz: 838f151c7f50de1dbc0366bca7813d8f289c1c69e66177367570707a2fd046eed2c11a9bebac4aa9deb7ea2288a03c645c1ec2e1a6328999d19c3676b38dc661
7
- data.tar.gz: 8073706ad99d5c51d96c014cddbbb6a5d49aa83e7c180723a6bd4eb2ae00d0a0214795072a23cad73c924683a62c90491cda48d73940ca1e09070424b2b9f3a1
6
+ metadata.gz: 786518abd4685b0cfa9dd19725d15a4167efa02d5bd45b9a65cc58e0ed0915d5c2b9a0f1d9f5461b1ec6d9eae970b4cd949d971f71a1de2d189500e0412b0b4e
7
+ data.tar.gz: 5af08775fdf20fc7f2f126e02e5a78add35b6edcf7c8dcc269546d9260e04259b62eb1df1883d4356f86c93ef6733201437f820a464040090bf0004a52973ced
@@ -1,5 +1,5 @@
1
1
  module Megam
2
2
  class API
3
- VERSION = "1.5.5"
3
+ VERSION = "1.5.6"
4
4
  end
5
5
  end
@@ -6,9 +6,9 @@ module Megam
6
6
  include Nilavu::MegamAttributes
7
7
  attr_reader :status, :inputs, :tosca_type
8
8
 
9
- DEFAULT_TOSCA_PREFIX = 'tosca'.freeze
10
- # this is a mutable string, if nothing exists then we use ubuntu
11
- DEFAULT_TOSCA_SUFFIX = 'ubuntu'.freeze
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
- tosca_suffix = DEFAULT_TOSCA_SUFFIX
41
- tosca_suffix = "#{params[:mkp_name]}" unless params[:cattype] != 'TORPEDO'.freeze
42
- @tosca_type = DEFAULT_TOSCA_PREFIX + ".#{params[:cattype].downcase}.#{params[:mkp_name].downcase}" if params[:cattype] != nil && params[:mkp_name] != nil
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.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-08 00:00:00.000000000 Z
12
+ date: 2016-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: excon