mofa 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ class AttributesMap
12
12
  a.hostlist = hostlist
13
13
  a.token = token
14
14
  a.option_runlist = option_runlist
15
- a.option_attributes = option_attributes
15
+ a.option_attributes = JSON.parse(option_attributes)
16
16
  a
17
17
  end
18
18
 
@@ -21,7 +21,7 @@ class AttributesMap
21
21
  end
22
22
 
23
23
  def generate
24
- attr_all_roles = cookbook.mofa_yml.get_attr_for_role('all')
24
+ attr_all_roles = deep_merge(option_attributes, cookbook.mofa_yml.get_attr_for_role('all'))
25
25
  attr_all_roles_local = cookbook.mofa_yml_local.get_attr_for_role('all')
26
26
  attr_all_roles = deep_merge(attr_all_roles, attr_all_roles_local)
27
27
 
data/lib/mofa/cli.rb CHANGED
@@ -19,6 +19,7 @@ module Mofa
19
19
  method_option :target, :type => :string, :aliases => '-t'
20
20
  method_option :concrete_target, :type => :string, :aliases => '-T'
21
21
  method_option :runlist, :type => :string, :aliases => '-o'
22
+ method_option :attributes, :type => :string, :aliases => '-j'
22
23
  method_option :service_hostlist_url, :type => :string
23
24
 
24
25
  def provision(cookbook_name_or_path)
data/lib/mofa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mofa
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-27 00:00:00.000000000 Z
12
+ date: 2015-10-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec