lib/testlab/container/lxc.rb in testlab-1.0.0 vs lib/testlab/container/lxc.rb in testlab-1.0.1

- old
+ new

@@ -6,18 +6,12 @@ # Container Bootstrap # # Renders the supplied content into a file on the container and proceeds # to execute it on the container as root. # - # On rare occasion it appears that the container will wipe '/tmp' after - # the bootstrap script is seeded but before it is executed via lxc-attach. - # This results in a 'No such file or directory' bash error when attempting - # to execute the script. We allow 5 retries to seed the bootstrap script - # after which time the exception will be thrown and execution halted. - # # @param [String] content The content to render on the container and # execute. This is generally a bash script of some sort for example. - # @return [String] The output of *lxc-attach*. + # @return [String] The output of respective SSH/LXC bootstrap. def bootstrap(content, options={}) if self.lxc_clone.exists? self.ssh.bootstrap(content, options) else self.lxc.bootstrap(content)