Compare commits
2 commits
1f4666fee5
...
1de6990727
Author | SHA1 | Date | |
---|---|---|---|
1de6990727 | |||
d0f5e4737f |
5 changed files with 5 additions and 2 deletions
|
@ -63,7 +63,7 @@ steps:
|
|||
when:
|
||||
- event: tag
|
||||
# INFO: https://woodpecker-ci.org/plugins/Gitea%20Release
|
||||
image: docker.io/woodpeckerci/plugin-gitea-release:0.3
|
||||
image: docker.io/woodpeckerci/plugin-gitea-release:latest
|
||||
settings:
|
||||
base_url: https://git.kemitix.net
|
||||
api_key:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "kxio"
|
||||
version = "1.1.1"
|
||||
version = "1.1.2"
|
||||
edition = "2021"
|
||||
authors = ["Paul Campbell <pcampbell@kemitix.net>"]
|
||||
description = "Provides injectable Filesystem and Network resources to make code more testable"
|
||||
|
|
|
@ -48,6 +48,7 @@ pub fn temp() -> Result<FileSystem> {
|
|||
temp::new().map(FileSystem::Temp)
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub enum FileSystem {
|
||||
Real(real::RealFileSystem),
|
||||
Temp(temp::TempFileSystem),
|
||||
|
|
|
@ -4,6 +4,7 @@ pub const fn new(base: PathBuf) -> RealFileSystem {
|
|||
RealFileSystem { base }
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct RealFileSystem {
|
||||
base: PathBuf,
|
||||
}
|
||||
|
|
|
@ -14,6 +14,7 @@ pub(super) fn new() -> super::Result<TempFileSystem> {
|
|||
})
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct TempFileSystem {
|
||||
real: super::real::RealFileSystem,
|
||||
_temp_dir: Arc<Mutex<TempDir>>,
|
||||
|
|
Loading…
Reference in a new issue