141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
# File 'lib/hpcloud/container_resource.rb', line 141
def sync(synckey, syncto)
return false unless container_head()
@synckey = synckey
@syncto = syncto
unless syncto.nil?
unless syncto.start_with?("https://") || syncto.start_with?("http://")
resource = ResourceFactory.create(Connection.instance.storage, syncto)
if resource.head
@syncto = resource.public_url
else
@cstatus = resource.cstatus
return false
end
end
end
return save
end
|