Module: Mystro::Client
- Defined in:
- lib/mystro/client.rb,
lib/mystro/client/compute.rb,
lib/mystro/client/version.rb,
lib/mystro/client/template.rb,
lib/mystro/client/environment.rb,
lib/mystro/client/organization.rb
Defined Under Namespace
Modules: Version Classes: Base, Compute, Environment, Organization, Template
Class Method Summary collapse
Class Method Details
.new(klass, server, organization, token = nil) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/mystro/client.rb', line 11 def new(klass, server, organization, token=nil) k = "Mystro::Client::#{klass.to_s.capitalize}".constantize k.new(server,organization,token) rescue => e Mystro::Log.error "class #{klass} not found or error instantiating" Mystro::Log.debug e raise "class #{klass} not found or error instantiating, #{e.message}" end |