Sha256: c4a1d3f02d594185968a8f4af41fbd986248f172dfcfea098aaf4c692b77ea0d

Contents?: true

Size: 651 Bytes

Versions: 7

Compression:

Stored size: 651 Bytes

Contents

class TestLab

  # Provider Error Class
  class ProviderError < TestLabError; end

  # Provider Class
  #
  # @author Zachary Patten <zachary@jovelabs.net>
  class Provider
    PROXY_METHODS = %w(instance_id state user ip port create destroy up down reload status alive? dead? exists?).map(&:to_sym)

    autoload :AWS, 'testlab/providers/aws'
    autoload :Local, 'testlab/providers/local'
    autoload :Vagrant, 'testlab/providers/vagrant'

    class << self

      # Returns the path to the gems provider templates
      def template_dir
        File.join(TestLab.gem_dir, "lib", "testlab", "providers", "templates")
      end

    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
testlab-0.3.0 lib/testlab/provider.rb
testlab-0.2.1 lib/testlab/provider.rb
testlab-0.2.0 lib/testlab/provider.rb
testlab-0.1.0 lib/testlab/provider.rb
testlab-0.0.4 lib/testlab/provider.rb
testlab-0.0.3 lib/testlab/provider.rb
testlab-0.0.2 lib/testlab/provider.rb