lib/testlab/node/lxc.rb in testlab-1.0.1 vs lib/testlab/node/lxc.rb in testlab-1.1.0

- old
+ new

@@ -2,22 +2,10 @@ class Node module LXC require 'lxc' - # Node Bootstrap - # - # Renders the supplied content into a file on the node and proceeds - # to execute it on the node as root. - # - # @param [String] content The content to render on the node and - # execute. This is generally a bash script of some sort for example. - # @return [String] The output of SSH bootstrap. - def bootstrap(content, options={}) - self.ssh.bootstrap(content, options) - end - # Returns the LXC object for this Node # # This object is used to control containers on the node via it's provider # # @return [LXC] An instance of LXC configured for this node. @@ -31,10 +19,10 @@ # Returns the machine type of the node. # # @return [String] The output of 'uname -m'. def arch - @arch ||= self.ssh.exec(%(uname -m)).output.strip + @arch ||= self.exec(%(uname -m)).output.strip end end end