lib/aptly_file.rb in aptly_cli-0.0.2 vs lib/aptly_file.rb in aptly_cli-0.1.1
- old
+ new
@@ -13,14 +13,19 @@
base_uri "http://#{config[:server]}:#{config[:port]}/api"
def initialize(file_uri=nil, package=nil, local_file_path=nil)
end
+ def file_dir()
+ uri = "/files"
+ self.class.get uri
+ end
+
def file_get(file_uri)
if file_uri == "/"
uri = "/files"
else
- uri = "/files" + file_uri
+ uri = "/files/" + file_uri
end
self.class.get uri
end