Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Mount theme directory for theme development#26

Open
mroote wants to merge 5 commits into
developfrom
feature/mount_theme_directory
Open

Mount theme directory for theme development#26
mroote wants to merge 5 commits into
developfrom
feature/mount_theme_directory

Conversation

@mroote

@mroote mroote commented Oct 22, 2018

Copy link
Copy Markdown
Contributor

Allow easier theme development by exposing the theme directory to the host system.

@mroote mroote added the WIP label Oct 22, 2018
Comment thread dc.theme-dev.yml Outdated
@mroote mroote force-pushed the feature/mount_theme_directory branch from ce1830d to c02fc2b Compare October 26, 2018 17:45
@mroote mroote removed the WIP label Oct 29, 2018
@mroote mroote changed the title WIP: mount theme directory for theme development Mount theme directory for theme development Oct 29, 2018
@mroote

mroote commented Nov 5, 2018

Copy link
Copy Markdown
Contributor Author

@hrpatel have you had a chance to review this yet?

@hrpatel

hrpatel commented Nov 8, 2018

Copy link
Copy Markdown
Contributor

You'll need to rebase

@hrpatel

hrpatel commented Nov 8, 2018

Copy link
Copy Markdown
Contributor

Lets get this reviewed but wait to merge depending on what happens with the vendor pricing.. it might be a moot point if we decided to go with Virtual Slate

Comment thread run.sh
'd') DETACH='True' ;;
't') THEME_DEV='True' ;;
'?')
color_echo red "Invalid option: -${OPTARG}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do you load shtdlib?

Comment thread run.sh

while getopts ":dt" opt; do
case ${opt} in
'd') DETACH='True' ;;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make these true or false and use the builtin booleans

Comment thread run.sh
fi
compose_command="${compose_command} up"

if [ "${DETACH}" == 'True' ] ; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment about true/false

Comment thread run.sh
while getopts ":dt" opt; do
case ${opt} in
'd') DETACH='True' ;;
't') THEME_DEV='True' ;;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the other boolean variable

Comment thread run.sh
function stop_moodle {
local compose_command="${BASE_COMMAND}"

if [ "${THEME_DEV}" == 'True' ] ; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can probably abstract out this if block into a function and reuse it the other places with the same code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants