lib/testlab/container/lxc.rb in testlab-0.7.4 vs lib/testlab/container/lxc.rb in testlab-0.7.5
- old
+ new
@@ -16,10 +16,14 @@
#
# @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*.
def bootstrap(content)
- self.lxc.bootstrap(content)
+ if self.lxc_clone.exists?
+ self.ssh.bootstrap(content)
+ else
+ self.lxc.bootstrap(content)
+ end
end
# LXC::Container object
#
# Returns a *LXC::Container* class instance configured for this container.