Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #32814 - Fix working dir when doesn't exist
- Loading branch information
1 parent
cd051f6
commit 70af295
Showing
5 changed files
with
33 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module Proxy::Ansible | ||
class ConfigurationLoader | ||
def load_classes | ||
require 'smart_proxy_dynflow' | ||
require 'smart_proxy_dynflow/continuous_output' | ||
require 'smart_proxy_ansible/task_launcher/ansible_runner' | ||
require 'smart_proxy_ansible/task_launcher/playbook' | ||
require 'smart_proxy_ansible/actions' | ||
require 'smart_proxy_ansible/remote_execution_core/ansible_runner' | ||
require 'smart_proxy_ansible/runner/ansible_runner' | ||
require 'smart_proxy_ansible/runner/command_creator' | ||
require 'smart_proxy_ansible/runner/playbook' | ||
|
||
Proxy::Dynflow::TaskLauncherRegistry.register('ansible-runner', | ||
TaskLauncher::AnsibleRunner) | ||
Proxy::Dynflow::TaskLauncherRegistry.register('ansible-playbook', | ||
TaskLauncher::Playbook) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module Proxy::Ansible | ||
class ValidateSettings < ::Proxy::PluginValidators::Base | ||
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 | ||
end | ||
end |