Method: HP::Cloud::RemoteResource#parse

Defined in:
lib/hpcloud/remote_resource.rb

#parseObject



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/hpcloud/remote_resource.rb', line 36

def parse
  super
  
  unless @fname.index('<').nil?
    raise Exception.new("Valid object names do not contain the '<' character: #{@fname}")
  end
  unless @fname.index('>').nil?
    raise Exception.new("Valid object names do not contain the '>' character: #{@fname}")
  end
  unless @fname.index('"').nil?
    raise Exception.new("Valid object names do not contain the '\"' character: #{@fname}")
  end
  @lname = @fname
  @sname = @path
end