ironfan 4.0.0 → 4.0.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.0
1
+ 4.0.1
data/ironfan.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ironfan"
8
- s.version = "4.0.0"
8
+ s.version = "4.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Infochimps"]
@@ -22,5 +22,11 @@ module Ironfan
22
22
  end
23
23
  end
24
24
 
25
+ class Volume
26
+ def defaults
27
+ Ironfan.deprecated 'defaults'
28
+ end
29
+ end
30
+
25
31
  end
26
32
  end
@@ -42,7 +42,7 @@ module Ironfan
42
42
  end
43
43
 
44
44
  def raid_group(rg_name, attrs={}, &block)
45
- raid = volumes[rg_name] || Ironfan::Dsl::RaidGroup.new
45
+ raid = volumes[rg_name] || Ironfan::Dsl::RaidGroup.new(:name => rg_name)
46
46
  raid.receive!(attrs, &block)
47
47
  raid.sub_volumes.each do |sv_name|
48
48
  volume(sv_name){ in_raid(rg_name) ; mountable(false) ; tags({}) }
@@ -92,6 +92,7 @@ module Ironfan
92
92
  end
93
93
 
94
94
  def on_correlate(computer)
95
+ return unless self['volumes']
95
96
  self['volumes'].each do |name,volume|
96
97
  computer.drive(name).node.merge! volume
97
98
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ironfan
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 4.0.0
5
+ version: 4.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Infochimps
@@ -232,7 +232,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
232
232
  requirements:
233
233
  - - ">="
234
234
  - !ruby/object:Gem::Version
235
- hash: -4005934554339854543
235
+ hash: 4333308568630839525
236
236
  segments:
237
237
  - 0
238
238
  version: "0"