File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
lib/fog/proxmox/compute/models Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
inherit_from :
2
2
- .rubocop_todo.yml
3
- require :
3
+ require :
4
4
- rubocop-minitest
5
5
- rubocop-rake
6
6
- rubocop-rspec
7
7
8
+ Migration/DepartmentName :
9
+ Enabled : false
10
+
8
11
AllCops :
9
- TargetRubyVersion : 2.5
12
+ TargetRubyVersion : 2.5
10
13
NewCops : disable
11
14
Exclude :
12
15
- ' examples/**/*'
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ module Fog
26
26
module Proxmox
27
27
class Compute
28
28
# Server model
29
+ # rubocop:disable ClassLength
29
30
class Server < Fog ::Compute ::Server
30
31
identity :vmid
31
32
attribute :type
@@ -72,6 +73,10 @@ def initialize(new_attributes = {})
72
73
super ( new_attributes )
73
74
end
74
75
76
+ def to_s
77
+ name
78
+ end
79
+
75
80
def container?
76
81
type == 'lxc'
77
82
end
@@ -260,6 +265,7 @@ def node
260
265
Fog ::Proxmox ::Compute ::Node . new ( service : service , node : node_id )
261
266
end
262
267
end
268
+ # rubocop:enable ClassLength
263
269
end
264
270
end
265
271
end
You can’t perform that action at this time.
0 commit comments