Skip to content

Commit

Permalink
Use the now public registered_ansible_content reader
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Apr 4, 2018
1 parent f23bdb3 commit eb7f90c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/embedded_ansible_worker/object_management.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ def clean_consolidated_plugin_directory
def copy_plugin_ansible_content
FileUtils.mkdir_p(self.class.consolidated_plugin_directory)

# TODO: make this a public api via an attr_reader
Vmdb::Plugins.instance.instance_variable_get(:@registered_ansible_content).each do |content|
Vmdb::Plugins.instance.registered_ansible_content.each do |content|
FileUtils.cp_r(Dir.glob("#{content.path}/*"), self.class.consolidated_plugin_directory)
end
end
Expand Down

0 comments on commit eb7f90c

Please sign in to comment.