rubix 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/rubix/sender.rb +3 -3
  3. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.10
1
+ 0.0.11
@@ -93,14 +93,14 @@ module Rubix
93
93
  #
94
94
  # @return [Array<Rubix::HostGroup>]
95
95
  def initialize_host_groups
96
- self.host_groups = settings['host_groups'].split(',').flatten.compact.map { |group_name | HostGroup.find_or_create(:name => group_name.strip) }
96
+ self.host_groups = settings['host_groups'].split(',').flatten.compact.map(&:strip).uniq.map { |group_name | HostGroup.find_or_create(:name => group_name.strip) }
97
97
  end
98
98
 
99
99
  # Find necessary templates.
100
100
  #
101
101
  # @return [Array<Rubix::Template>]
102
102
  def initialize_templates
103
- self.templates = (settings['templates'] || '').split(',').flatten.compact.map { |template_name | Template.find(:name => template_name.strip) }.compact
103
+ self.templates = (settings['templates'] || '').split(',').flatten.compact.map(&:strip).uniq.map { |template_name | Template.find(:name => template_name.strip) }.compact
104
104
  end
105
105
 
106
106
  # Find or create the host for this data. Host groups and
@@ -119,7 +119,7 @@ module Rubix
119
119
  #
120
120
  # @return [Array<Rubix::Application>]
121
121
  def initialize_applications
122
- application_names = (settings['applications'] || '').split(',').flatten.compact
122
+ application_names = (settings['applications'] || '').split(',').flatten.compact.map(&:strip).uniq
123
123
  self.applications = []
124
124
  application_names.each do |app_name|
125
125
  app = Application.find(:name => app_name, :host_id => host.id)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubix
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 10
10
- version: 0.0.10
9
+ - 11
10
+ version: 0.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dhruv Bansal
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-12 00:00:00 Z
18
+ date: 2011-12-16 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec