snapshots: Prepare for restructuring
This commit renames the 'wisski' package to 'dis' and prepares the snapshots component for restructuring.
This commit is contained in:
parent
f58920baf4
commit
1dac09bc03
12 changed files with 62 additions and 55 deletions
|
|
@ -53,7 +53,7 @@ func (bk backupC) Run(context wisski_distillery.Context) error {
|
|||
if !bk.StagingOnly {
|
||||
// regular mode: create a temporary staging directory
|
||||
logging.LogMessage(context.IOStream, "Creating new snapshot staging directory")
|
||||
sPath, err = dis.Snapshots().NewStagingDir("")
|
||||
sPath, err = dis.SnapshotManager().NewStagingDir("")
|
||||
if err != nil {
|
||||
return errSnapshotFailed.Wrap(err)
|
||||
}
|
||||
|
|
@ -65,7 +65,7 @@ func (bk backupC) Run(context wisski_distillery.Context) error {
|
|||
// staging mode: use dest as a destination
|
||||
sPath = bk.Positionals.Dest
|
||||
if sPath == "" {
|
||||
sPath, err = dis.Snapshots().NewStagingDir("")
|
||||
sPath, err = dis.SnapshotManager().NewStagingDir("")
|
||||
if err != nil {
|
||||
return errSnapshotFailed.Wrap(err)
|
||||
}
|
||||
|
|
@ -100,7 +100,7 @@ func (bk backupC) Run(context wisski_distillery.Context) error {
|
|||
// create the archive path
|
||||
archivePath := bk.Positionals.Dest
|
||||
if archivePath == "" {
|
||||
archivePath = dis.Snapshots().NewArchivePath("")
|
||||
archivePath = dis.SnapshotManager().NewArchivePath("")
|
||||
}
|
||||
|
||||
// and write everything into it!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue