lib/testlab/provisioners/omnitruck.rb in testlab-0.6.5 vs lib/testlab/provisioners/omnitruck.rb in testlab-0.6.6
- old
+ new
@@ -28,11 +28,11 @@
# and proceeds to execute said script as root via *lxc-attach*.
#
# @param [TestLab::Container] container The container which we want to
# provision.
# @return [Boolean] True if successful.
- def setup(container)
+ def on_container_setup(container)
omnibus_template = File.join(TestLab::Provisioner.template_dir, 'chef', 'omnitruck.erb')
config = {}.merge!({
:server_name => container.fqdn,
:chef_pre_11 => chef_pre_11?,
:chef_solo_attributes => build_chef_solo_attributes(container),
@@ -51,10 +51,10 @@
# OmniTruck Provisioner Container Teardown
#
# This is a NO-OP currently.
#
# @return [Boolean] True if successful.
- def teardown(container)
+ def on_container_teardown(container)
# NOOP
true
end