Sha256: c0bf6b36284f2cccb26d16c3e757513ee17fdb61502ffc458da72cc15d70b408

Contents?: true

Size: 735 Bytes

Versions: 8

Compression:

Stored size: 735 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 :OpenStack, 'testlab/providers/open_stack'
    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

8 entries across 8 versions & 1 rubygems

Version Path
testlab-1.10.0 lib/testlab/provider.rb
testlab-1.9.2 lib/testlab/provider.rb
testlab-1.9.1 lib/testlab/provider.rb
testlab-1.9.0 lib/testlab/provider.rb
testlab-1.8.5 lib/testlab/provider.rb
testlab-1.8.4 lib/testlab/provider.rb
testlab-1.8.3 lib/testlab/provider.rb
testlab-1.8.2 lib/testlab/provider.rb