Class: Proxy::Ansible::ValidateSettings

Inherits:
PluginValidators::Base
  • Object
show all
Defined in:
lib/smart_proxy_ansible/validate_settings.rb

Instance Method Summary collapse

Instance Method Details

#validate!(settings) ⇒ Object



3
4
5
# File 'lib/smart_proxy_ansible/validate_settings.rb', line 3

def validate!(settings)
  raise NotExistingWorkingDirException.new("Working directory does not exist") unless settings[:working_dir].nil? || File.directory?(File.expand_path(settings[:working_dir]))
end