Module: Fog::Storage::Softlayer::Integrity

Included in:
Mock, Real
Defined in:
lib/fog/softlayer/storage.rb

Instance Method Summary collapse

Instance Method Details

#validate_username!(name) ⇒ Object



43
44
45
# File 'lib/fog/softlayer/storage.rb', line 43

def validate_username!(name)
  name =~ /:/ and raise ArgumentError, "Invalid username format. If you are using a Storage specific username, use only the part after the colon."
end