class Proxy::RemoteExecution::Ssh::Settings
Constants
- DEFAULT_SETTINGS
Public Class Methods
create!(input = {})
click to toggle source
# File lib/smart_proxy_remote_execution_ssh_core/settings.rb, line 25 def self.create!(input = {}) settings = Proxy::RemoteExecution::Ssh::Settings.new input self.instance = settings end
instance()
click to toggle source
# File lib/smart_proxy_remote_execution_ssh_core/settings.rb, line 30 def self.instance SmartProxyDynflowCore::SETTINGS.plugins['smart_proxy_remote_execution_ssh_core'] end
instance=(settings)
click to toggle source
# File lib/smart_proxy_remote_execution_ssh_core/settings.rb, line 34 def self.instance=(settings) SmartProxyDynflowCore::SETTINGS.plugins['smart_proxy_remote_execution_ssh_core'] = settings end
new(settings = {})
click to toggle source
Calls superclass method
# File lib/smart_proxy_remote_execution_ssh_core/settings.rb, line 15 def initialize(settings = {}) super(DEFAULT_SETTINGS.merge(settings)) end
Public Instance Methods
load_settings_from_proxy()
click to toggle source
# File lib/smart_proxy_remote_execution_ssh_core/settings.rb, line 19 def load_settings_from_proxy DEFAULT_SETTINGS.keys.each do |key| self.class.instance[key] = Proxy::RemoteExecution::Ssh::Plugin.settings[key] end end