Add UploadPath to Context. #116

This commit is contained in:
Andrey Smirnov
2014-10-12 16:27:52 +04:00
parent 972e8c1373
commit 6b83213cf4
+5
View File
@@ -272,6 +272,11 @@ func (context *AptlyContext) GetPublishedStorage(name string) aptly.PublishedSto
return publishedStorage
}
// UploadPath builds path to upload storage
func (context *AptlyContext) UploadPath() string {
return filepath.Join(context.Config().RootDir, "upload")
}
// UpdateFlags sets internal copy of flags in the context
func (context *AptlyContext) UpdateFlags(flags *flag.FlagSet) {
context.flags = flags