-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from Rynaro/chore/plugins/enhance-plugin-scaff…
…olding Enhance Plugin Creation
- Loading branch information
Showing
5 changed files
with
72 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
PLUGIN_NAME="$plugin_name" | ||
PLUGIN_VERSION="0.0.1" | ||
PLUGIN_RELATIVE_FOLDER='$(dirname "$0")/"$1"' | ||
|
||
# Source utilities script | ||
source "$PLUGIN_RELATIVE_FOLDER/utilities.sh" | ||
|
||
# Function to prepare to install packages | ||
prepare() { | ||
# update_repositories | ||
} | ||
|
||
# Function to install packages | ||
install_packages() { | ||
echo "Installing Plugin: $plugin_name..." | ||
safe_source "packages/package1.sh" | ||
} | ||
|
||
# Function to consolidate post-installation scripts | ||
post_install() { | ||
# Add your post install scripts | ||
} | ||
|
||
# Run pipeline | ||
configure | ||
install_packages | ||
post_install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
safe_source "utilities.sh" | ||
|
||
MY_PREFERRED_PACKAGE_VERSION=1.0.0 | ||
|
||
prepare_package() { | ||
# sudo apt install -y build-essentials | ||
} | ||
|
||
# Function to install package 1 | ||
install_package() { | ||
echo "Installing package 1..." | ||
# Installation commands for package 1 | ||
echo "Installing super cool package $MY_PREFERRED_PACKAGE_VERSION" | ||
} | ||
|
||
configure_package() { | ||
# docker build ~/projects/super-duper-app | ||
} | ||
|
||
# Run installation | ||
prepare_package | ||
install_package | ||
configure_package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters