Class: Proxy::Ansible::ValidateSettings
- Inherits:
-
PluginValidators::Base
- Object
- PluginValidators::Base
- Proxy::Ansible::ValidateSettings
- 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.(settings[:working_dir])) end |