Class: AnsibleUtils::DependencyManager
- Inherits:
-
Object
- Object
- AnsibleUtils::DependencyManager
- Includes:
- PlaybookHelpers
- Defined in:
- lib/ansible_utils/dependency_manager.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#playbook_path ⇒ Object
readonly
Returns the value of attribute playbook_path.
Instance Method Summary collapse
- #copy_roles ⇒ Object
-
#initialize(playbook_path, options = {}) ⇒ DependencyManager
constructor
A new instance of DependencyManager.
- #symlink_roles ⇒ Object
Methods included from PlaybookHelpers
#config_file_path, #delete_if_exists, #generic_roles_folder, #paths, #playbook, #project_folder, #roles
Constructor Details
#initialize(playbook_path, options = {}) ⇒ DependencyManager
Returns a new instance of DependencyManager.
9 10 11 12 |
# File 'lib/ansible_utils/dependency_manager.rb', line 9 def initialize playbook_path, = {} @playbook_path = playbook_path @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/ansible_utils/dependency_manager.rb', line 7 def @options end |
#playbook_path ⇒ Object (readonly)
Returns the value of attribute playbook_path.
7 8 9 |
# File 'lib/ansible_utils/dependency_manager.rb', line 7 def playbook_path @playbook_path end |
Instance Method Details
#copy_roles ⇒ Object
18 19 20 |
# File 'lib/ansible_utils/dependency_manager.rb', line 18 def copy_roles paths.each{|path| execute_in_path(:copy, path) } end |
#symlink_roles ⇒ Object
14 15 16 |
# File 'lib/ansible_utils/dependency_manager.rb', line 14 def symlink_roles paths.each{|path| execute_in_path(:symlink, path) } end |