rubber 1.13.1 → 1.13.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,10 @@
1
+ 1.13.2
2
+ -----
3
+
4
+ fix npe <184cbac> [Matt Conway]
5
+ Merge pull request #61 from dzinevich/e173588f4018bc118785bd3806d262ce3bdd033d <0bfb5c2> [Kevin Menard]
6
+ make workaround so ebs works with 11.04 <e173588> [Denis Zinevich]
7
+
1
8
  1.13.1
2
9
  -----
3
10
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.13.1
1
+ 1.13.2
@@ -157,7 +157,7 @@ module Rubber
157
157
  roles = Array(roles)
158
158
 
159
159
  if expanded.size == 0
160
- common_deps = dependency_map[RoleItem.new('common')]
160
+ common_deps = Array(dependency_map[RoleItem.new('common')])
161
161
  roles.concat(common_deps)
162
162
  end
163
163
 
@@ -124,9 +124,14 @@ namespace :rubber do
124
124
  fi
125
125
  mv /etc/fstab /etc/fstab.bak
126
126
  cat /etc/fstab.bak | grep -v '#{vol_spec['mount']}' > /etc/fstab
127
- echo '#{vol_spec['device']} #{vol_spec['mount']} #{vol_spec['filesystem']} noatime 0 0 # rubber volume #{vol_id}' >> /etc/fstab
128
-
129
- #{('yes | mkfs -t ' + vol_spec['filesystem'] + ' ' + vol_spec['device']) if created}
127
+ if grep '11\.04' /etc/lsb-release; then
128
+ device=`echo #{vol_spec['device']} | sed 's/sd/xvd/'`
129
+ else
130
+ device='#{vol_spec['device']}'
131
+ fi
132
+ echo "$device #{vol_spec['mount']} #{vol_spec['filesystem']} noatime 0 0 # rubber volume #{vol_id}" >> /etc/fstab
133
+
134
+ #{('yes | mkfs -t ' + vol_spec['filesystem'] + ' ' + '$device') if created}
130
135
  #{("mkdir -p '#{vol_spec['mount']}'") if vol_spec['mount']}
131
136
  #{("mount '#{vol_spec['mount']}'") if vol_spec['mount']}
132
137
  fi
@@ -157,7 +162,7 @@ namespace :rubber do
157
162
  fi
158
163
 
159
164
  # partition format is: Start (blank is first available),Size(MB due to -uM),Id(83=linux,82=swap,etc),Bootable
160
- echo "#{partition_spec['start']},#{partition_spec['size']},#{partition_spec['type']},#{partition_spec['bootable']}" | sfdisk -L -uM #{partition_spec['disk_device']}
165
+ echo "#{partition_spec['start']},#{partition_spec['size']},#{partition_spec['type']},#{partition_spec['bootable']}" | sfdisk -L -uM #{partition_spec['disk_device']}
161
166
  fi
162
167
  ENDSCRIPT
163
168
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rubber
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.13.1
5
+ version: 1.13.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Conway
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-16 00:00:00 -04:00
13
+ date: 2011-05-23 00:00:00 -04:00
14
14
  default_executable: vulcanize
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency