Skip to content

Commit

Permalink
Rename .unimake/remotes.py -> .unimake/remote.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eddoss committed Apr 19, 2024
1 parent 1c94a40 commit c6aaf5c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [v0.1.3] - 2024-04-19
### Change
- Rename .unimake/remotes.py -> .unimake/remote.py

## [v0.1.2] - 2024-04-19
### Fixed
- Fix assignment of config entry with type int, bool and float
Expand Down
6 changes: 3 additions & 3 deletions umk/runtime/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def load(self, options: Options):
self.script(root, "config")
self.script(root, "project")
if with_remote:
self.script(root, "remotes")
self.script(root, "remote")

if with_config:
self.config.setup(options.config)
Expand All @@ -75,7 +75,7 @@ def find_remote(self, default: bool, specific: str) -> remote.Interface:
if not result:
core.globals.error_console.print(
'Failed to find default remote environment! '
'Please specify it in the .unimake/remotes.py'
'Please specify it in the .unimake/remote.py'
)
core.globals.close(-1)
return result
Expand All @@ -84,7 +84,7 @@ def find_remote(self, default: bool, specific: str) -> remote.Interface:
if not result:
core.globals.error_console.print(
f"Failed to find remote environment '{specific}'! "
f"Please create it in the .unimake/remotes.py"
f"Please create it in the .unimake/remote.py"
)
core.globals.close(-1)
return result
Expand Down
20 changes: 10 additions & 10 deletions umk/runtime/remotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Decorators(core.Model):
description="Decorator of the remote 'custom'",
default_factory=lambda: utils.Decorator(
stack=2,
module="remotes",
module="remote",
input=utils.Decorator.Input(
subject="class",
base=remote.Interface,
Expand All @@ -29,10 +29,10 @@ class Decorators(core.Model):
subject="function",
sig=utils.Decorator.Input.Signature(min=1)
),
module="remotes",
module="remote",
errors=utils.Decorator.OnErrors(
module=utils.SourceError("Failed to register remote environment 'ssh' outside of the .unimake/remotes.py"),
subject=utils.FunctionError("Failed to register remote environment 'ssh'. Use 'umk.framework.remotes.ssh with functions"),
module=utils.SourceError("Failed to register remote environment 'ssh' outside of the .unimake/remote.py"),
subject=utils.FunctionError("Failed to register remote environment 'ssh'. Use 'umk.framework.remote.ssh with functions"),
sig=utils.SignatureError("Failed to register remote environment 'ssh'. Function must accept 1 argument at least"),
)
),
Expand All @@ -45,10 +45,10 @@ class Decorators(core.Model):
subject="function",
sig=utils.Decorator.Input.Signature(min=1)
),
module="remotes",
module="remote",
errors=utils.Decorator.OnErrors(
module=utils.SourceError("Failed to register remote environment 'docker.container' outside of the .unimake/remotes.py"),
subject=utils.FunctionError("Failed to register remote environment 'docker.container'. Use 'umk.framework.remotes.docker.container with functions"),
module=utils.SourceError("Failed to register remote environment 'docker.container' outside of the .unimake/remote.py"),
subject=utils.FunctionError("Failed to register remote environment 'docker.container'. Use 'umk.framework.remote.docker.container with functions"),
sig=utils.SignatureError("Failed to register remote environment 'docker.container'. Function must accept 1 argument at least"),
)
),
Expand All @@ -61,10 +61,10 @@ class Decorators(core.Model):
subject="function",
sig=utils.Decorator.Input.Signature(min=1)
),
module="remotes",
module="remote",
errors=utils.Decorator.OnErrors(
module=utils.SourceError("Failed to register remote environment 'docker.compose' outside of the .unimake/remotes.py"),
subject=utils.FunctionError("Failed to register remote environment 'docker.compose'. Use 'umk.framework.remotes.docker.compose with functions"),
module=utils.SourceError("Failed to register remote environment 'docker.compose' outside of the .unimake/remote.py"),
subject=utils.FunctionError("Failed to register remote environment 'docker.compose'. Use 'umk.framework.remote.docker.compose with functions"),
sig=utils.SignatureError("Failed to register remote environment 'docker.compose'. Function must accept 1 argument at least"),
)
),
Expand Down

0 comments on commit c6aaf5c

Please sign in to comment.