Class: AnsibleUtils::DependencyManager

Inherits:
Object
  • Object
show all
Includes:
PlaybookHelpers
Defined in:
lib/ansible_utils/dependency_manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {}
  @playbook_path = playbook_path
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/ansible_utils/dependency_manager.rb', line 7

def options
  @options
end

#playbook_pathObject (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_rolesObject



18
19
20
# File 'lib/ansible_utils/dependency_manager.rb', line 18

def copy_roles
  paths.each{|path| execute_in_path(:copy, path) }
end


14
15
16
# File 'lib/ansible_utils/dependency_manager.rb', line 14

def symlink_roles
  paths.each{|path| execute_in_path(:symlink, path) }
end