lib/testlab/provisioners/shell.rb in testlab-0.9.1 vs lib/testlab/provisioners/shell.rb in testlab-1.0.0

- old
+ new

@@ -14,18 +14,18 @@ def initialize(config={}, ui=nil) @ui = (ui || TestLab.ui) @config = (config || Hash.new) end - # Shell Provisioner Container Setup + # Shell: Container Provision # # Renders the defined script to a temporary file on the target container # 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 on_container_setup(container) + def on_container_provision(container) @config[:script].nil? and raise ShellError, "You must supply a script to bootstrap!" container.bootstrap(@config[:script]) true