Method: HP::Cloud::ResourceFactory.create
- Defined in:
- lib/hpcloud/resource_factory.rb
.create(storage, fname) ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/hpcloud/resource_factory.rb', line 41 def self.create(storage, fname) unless (fname.start_with?('http://') || fname.start_with?('https://')) if fname.length > 0 unless fname.start_with?(':') unless fname.start_with?('/') unless fname.start_with?('.') fname = ':' + fname end end end end end return ResourceFactory.create_any(storage, fname) end |