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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4bb5844d31aea6604e7dae1ece699f1c0f4ce4f
4
- data.tar.gz: 0183f767f137f4794d00e91c629f143f7f94c1d9
3
+ metadata.gz: db1cc96b60f64e415c59d84afe0d3156992b2338
4
+ data.tar.gz: fa207733005d350e4a2d23f3f5941d324645a7a9
5
5
  SHA512:
6
- metadata.gz: 91d55d61866c2af215866956fb0c1ccf79ea20fae4b52cd0fceb1603a599aff55becbfecc6d80adcef3b01420f9ae842a31fab45e9aa029485e320f8db506fe6
7
- data.tar.gz: ef8e4c929f0c684b9beac2352a59ff3c8e55c1d0ec333f47d8bfe4345c5377169601b2ce64ff08dfe8c3e66bd6780602b1366a4e60899d98a10764fe2556b43b
6
+ metadata.gz: 84ade058da8490f5a9acb57faf7cae8f963475f87b38e0f0a7eb3c837470f4e29842a52aa6541ab2751b5f093b74dbf50016451d1be618c6ed48848c69929a84
7
+ data.tar.gz: 2e7645d8ceaed125d5ae05e46e43101cc01c506322d419bba6586a40e8c906ae97c4a1dcf8015e15c2b61899c8210a72439f66647a456a633219cefb0c6ab487
@@ -1,3 +1,3 @@
1
1
  module ForemanDatacenter
2
- VERSION = '0.1.35'.freeze
2
+ VERSION = '0.1.36'.freeze
3
3
  end
@@ -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: 2)
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: device.device_type.u_height)
17
+ device.update_attribute(:size, device.device_type.u_height)
18
18
  end
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_datacenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.35
4
+ version: 0.1.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Ivanov