Sha256: bdb94f6e89e1e716740d72447c9356dcb5cb37c9d29e2cafc45b050cfc40b774

Contents?: true

Size: 658 Bytes

Versions: 2

Compression:

Stored size: 658 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 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

2 entries across 2 versions & 1 rubygems

Version Path
testlab-0.4.0 lib/testlab/provider.rb
testlab-0.3.1 lib/testlab/provider.rb