foreman_datacenter 0.1.35 → 0.1.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreman_datacenter/version.rb +1 -1
- data/lib/tasks/devices_tasks.rake +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db1cc96b60f64e415c59d84afe0d3156992b2338
|
4
|
+
data.tar.gz: fa207733005d350e4a2d23f3f5941d324645a7a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84ade058da8490f5a9acb57faf7cae8f963475f87b38e0f0a7eb3c837470f4e29842a52aa6541ab2751b5f093b74dbf50016451d1be618c6ed48848c69929a84
|
7
|
+
data.tar.gz: 2e7645d8ceaed125d5ae05e46e43101cc01c506322d419bba6586a40e8c906ae97c4a1dcf8015e15c2b61899c8210a72439f66647a456a633219cefb0c6ab487
|
@@ -3,18 +3,18 @@ namespace :foreman_datacenter do
|
|
3
3
|
desc 'Devices tasks'
|
4
4
|
task side: :environment do
|
5
5
|
# updating :side attribute for devices without :side
|
6
|
-
Device.all.each do |device|
|
6
|
+
ForemanDatacenter::Device.all.each do |device|
|
7
7
|
if device.side.nil?
|
8
|
-
device.update_attribute(side
|
8
|
+
device.update_attribute(:side, 2)
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
13
|
task size: :environment do
|
14
14
|
# updating :size attribute according to device_type.u_height
|
15
|
-
Device.all.each do |device|
|
15
|
+
ForemanDatacenter::Device.all.each do |device|
|
16
16
|
if device.device_type
|
17
|
-
device.update_attribute(size
|
17
|
+
device.update_attribute(:size, device.device_type.u_height)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|