Sha256: 3d39d8257fa61405ab5f61a1cd474d0dc28af2fdbe3d3b67bd02bc6cbf43afd9
Contents?: true
Size: 973 Bytes
Versions: 27
Compression:
Stored size: 973 Bytes
Contents
class TestLab class Provisioner # Ubuntu Raring Provisioner Error Class class RaringError < ProvisionerError; end # Ubuntu Raring Provisioner Class # # @author Zachary Patten <zachary AT jovelabs DOT com> class Raring def initialize(config={}, ui=nil) @config = (config || Hash.new) @ui = (ui || TestLab.ui) @config[:raring] ||= Hash.new @ui.logger.debug { "config(#{@config.inspect})" } end # Ubuntu Raring Provisioner Node Setup # # @param [TestLab::Node] node The node which we want to # provision. # @return [Boolean] True if successful. def on_node_setup(node) @ui.logger.debug { "Ubuntu Raring Provisioner: Node #{node.id}" } bootstrap_template = File.join(TestLab::Provisioner.template_dir, "raring", "bootstrap.erb") node.ssh.bootstrap(ZTK::Template.render(bootstrap_template, @config)) end end end end
Version data entries
27 entries across 27 versions & 1 rubygems