Sha256: 7b3145ba30659e3e3e45d9dc30e46df476b9a9fe436a77553436becd8fe168cc

Contents?: true

Size: 667 Bytes

Versions: 82

Compression:

Stored size: 667 Bytes

Contents

class TestLab

  # Provider Error Class
  class ProviderError < TestLabError; end

  # Provider Class
  #
  # @author Zachary Patten <zachary AT jovelabs DOT com>
  class Provider
    PROXY_METHODS = %w(instance_id state user identity 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

82 entries across 82 versions & 1 rubygems

Version Path
testlab-1.3.0 lib/testlab/provider.rb
testlab-1.2.3 lib/testlab/provider.rb
testlab-1.2.2 lib/testlab/provider.rb
testlab-1.2.1 lib/testlab/provider.rb
testlab-1.2.0 lib/testlab/provider.rb
testlab-1.1.0 lib/testlab/provider.rb
testlab-1.0.1 lib/testlab/provider.rb
testlab-1.0.0 lib/testlab/provider.rb
testlab-0.9.1 lib/testlab/provider.rb
testlab-0.9.0 lib/testlab/provider.rb
testlab-0.8.6 lib/testlab/provider.rb
testlab-0.8.5 lib/testlab/provider.rb
testlab-0.8.4 lib/testlab/provider.rb
testlab-0.8.3 lib/testlab/provider.rb
testlab-0.8.2 lib/testlab/provider.rb
testlab-0.8.1 lib/testlab/provider.rb
testlab-0.8.0 lib/testlab/provider.rb
testlab-0.7.6 lib/testlab/provider.rb
testlab-0.7.5 lib/testlab/provider.rb
testlab-0.7.4 lib/testlab/provider.rb