lib/testlab/provisioners/apt_cacher_ng.rb in testlab-0.6.5 vs lib/testlab/provisioners/apt_cacher_ng.rb in testlab-0.6.6

- old
+ new

@@ -25,11 +25,11 @@ # APT-CacherNG Provisioner Node Setup # # @param [TestLab::Node] node The node which we want to provision. # @return [Boolean] True if successful. - def node(node) + def on_node_setup(node) @ui.logger.debug { "APT-CacherNG Provisioner: Node #{node.id}" } bootstrap_template = File.join(TestLab::Provisioner.template_dir, "apt_cacher_ng", "bootstrap.erb") node.ssh.bootstrap(ZTK::Template.render(bootstrap_template, @config)) @@ -53,10 +53,10 @@ # APT-CacherNG Provisioner Container Setup # # @param [TestLab::Container] container The container which we want to # provision. # @return [Boolean] True if successful. - def setup(container) + def on_container_setup(container) @ui.logger.debug { "APT-CacherNG Provisioner: Container #{container.id}" } # Ensure the container APT calls use apt-cacher-ng on the node gateway_ip = container.primary_interface.network.ip apt_conf_d_proxy_file = File.join(container.lxc.fs_root, "etc", "apt", "apt.conf.d", "00proxy")