Module: Rubber::Cloud

Defined in:
lib/rubber/cloud.rb,
lib/rubber/cloud/aws.rb,
lib/rubber/cloud/base.rb

Defined Under Namespace

Classes: Aws, Base

Class Method Summary collapse

Class Method Details

.get_provider(provider, env, capistrano) ⇒ Object


6
7
8
9
10
# File 'lib/rubber/cloud.rb', line 6

def self.get_provider(provider, env, capistrano)
  require "rubber/cloud/#{provider}"
  clazz = Rubber::Cloud.const_get(provider.capitalize)
  return clazz.new(env, capistrano)
end