Skip to content

Commit

Permalink
convert console_supported? to supports?
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed Mar 8, 2023
1 parent 4921f11 commit 0aef0d0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
module ManageIQ::Providers::Vmware::CloudManager::Vm::RemoteConsole
def console_supported?(type)
%w(WEBMKS).include?(type.upcase)
extend ActiveSupport::Concern

included do
supports :console
supports :html5_console
supports :webmks_console
end

def validate_remote_console_acquire_ticket(protocol, options = {})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
module ManageIQ::Providers::Vmware::InfraManager::Vm::RemoteConsole
def console_supported?(type)
%w(VMRC VNC WEBMKS).include?(type.upcase)
extend ActiveSupport::Concern

included do
supports :console
supports :html5_console
supports :vmrc_console
supports :vnc_console
supports :webmks_console
end

def validate_remote_console_acquire_ticket(protocol, options = {})
Expand Down

0 comments on commit 0aef0d0

Please sign in to comment.