refactor: Rename heropods variable and method
- Rename `factory` to `heropods_` - Rename `factory.new` to `heropods_.container_new` - Update error message for `heropods.new`
This commit is contained in:
6
examples/virt/heropods/runcommands.vsh
Normal file → Executable file
6
examples/virt/heropods/runcommands.vsh
Normal file → Executable file
@@ -2,12 +2,12 @@
|
||||
|
||||
import incubaid.herolib.virt.heropods
|
||||
|
||||
mut factory := heropods.new(
|
||||
mut heropods_ := heropods.new(
|
||||
reset: false
|
||||
use_podman: true
|
||||
) or { panic('Failed to init ContainerFactory: ${err}') }
|
||||
) or { panic('Failed to init HeroPods: ${err}') }
|
||||
|
||||
mut container := factory.new(
|
||||
mut container := heropods_.container_new(
|
||||
name: 'alpine_demo'
|
||||
image: .custom
|
||||
custom_image_name: 'alpine_3_20'
|
||||
|
||||
Reference in New Issue
Block a user