streamline package naming
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
from pyinfra.operations import server
|
||||
from pyinfra import host
|
||||
|
||||
USER = host.data.USER
|
||||
REPO = host.data.REPO
|
||||
APP = host.data.APP
|
||||
|
||||
server.shell(
|
||||
name="Clone application",
|
||||
commands=[
|
||||
f"""
|
||||
cd $HOME &&
|
||||
git clone --recurse-submodules {REPO} {APP}
|
||||
"""],
|
||||
_sudo=True,
|
||||
_sudo_user=USER,
|
||||
_use_sudo_login=True
|
||||
)
|
||||
@@ -0,0 +1,13 @@
|
||||
import { Manifest } from '@bitsquare/nopy-cubes';
|
||||
import { z } from 'zod';
|
||||
|
||||
export default Manifest({
|
||||
id: 'git:clone',
|
||||
name: 'Clone a repository',
|
||||
dependencies: () => [],
|
||||
schema: z.object({
|
||||
USER: z.string().describe('Username for which to clone the repository').default('vagrant'),
|
||||
REPO: z.string().default(''),
|
||||
APP: z.string().describe('The internal name used for this application').default(''),
|
||||
}),
|
||||
});
|
||||
Reference in New Issue
Block a user