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-0.6.0 lib/testlab/provider.rb
testlab-0.5.4 lib/testlab/provider.rb
testlab-0.5.3 lib/testlab/provider.rb
testlab-0.5.2 lib/testlab/provider.rb
testlab-0.5.1 lib/testlab/provider.rb
testlab-0.5.0 lib/testlab/provider.rb
testlab-0.4.16 lib/testlab/provider.rb
testlab-0.4.15 lib/testlab/provider.rb
testlab-0.4.14 lib/testlab/provider.rb
testlab-0.4.13 lib/testlab/provider.rb
testlab-0.4.12 lib/testlab/provider.rb
testlab-0.4.11 lib/testlab/provider.rb
testlab-0.4.10 lib/testlab/provider.rb
testlab-0.4.9 lib/testlab/provider.rb
testlab-0.4.8 lib/testlab/provider.rb
testlab-0.4.7 lib/testlab/provider.rb
testlab-0.4.6 lib/testlab/provider.rb
testlab-0.4.5 lib/testlab/provider.rb
testlab-0.4.4 lib/testlab/provider.rb
testlab-0.4.3 lib/testlab/provider.rb