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

Version Path
testlab-0.9.1 lib/testlab/provisioners/raring.rb
testlab-0.9.0 lib/testlab/provisioners/raring.rb
testlab-0.8.6 lib/testlab/provisioners/raring.rb
testlab-0.8.5 lib/testlab/provisioners/raring.rb
testlab-0.8.4 lib/testlab/provisioners/raring.rb
testlab-0.8.3 lib/testlab/provisioners/raring.rb
testlab-0.8.2 lib/testlab/provisioners/raring.rb
testlab-0.8.1 lib/testlab/provisioners/raring.rb
testlab-0.8.0 lib/testlab/provisioners/raring.rb
testlab-0.7.6 lib/testlab/provisioners/raring.rb
testlab-0.7.5 lib/testlab/provisioners/raring.rb
testlab-0.7.4 lib/testlab/provisioners/raring.rb
testlab-0.7.3 lib/testlab/provisioners/raring.rb
testlab-0.7.2 lib/testlab/provisioners/raring.rb
testlab-0.7.1 lib/testlab/provisioners/raring.rb
testlab-0.7.0 lib/testlab/provisioners/raring.rb
testlab-0.6.17 lib/testlab/provisioners/raring.rb
testlab-0.6.16 lib/testlab/provisioners/raring.rb
testlab-0.6.15 lib/testlab/provisioners/raring.rb
testlab-0.6.14 lib/testlab/provisioners/raring.rb