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

Conversation

@mroote
Copy link
Contributor

@mroote mroote commented Oct 22, 2018

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

@mroote mroote added the WIP label Oct 22, 2018
@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
Copy link
Contributor Author

mroote commented Nov 5, 2018

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

@hrpatel
Copy link
Contributor

hrpatel commented Nov 8, 2018

You'll need to rebase

@hrpatel
Copy link
Contributor

hrpatel commented Nov 8, 2018

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

'd') DETACH='True' ;;
't') THEME_DEV='True' ;;
'?')
color_echo red "Invalid option: -${OPTARG}"
Copy link
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?


while getopts ":dt" opt; do
case ${opt} in
'd') DETACH='True' ;;
Copy link
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

fi
compose_command="${compose_command} up"

if [ "${DETACH}" == 'True' ] ; then
Copy link
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

while getopts ":dt" opt; do
case ${opt} in
'd') DETACH='True' ;;
't') THEME_DEV='True' ;;
Copy link
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

function stop_moodle {
local compose_command="${BASE_COMMAND}"

if [ "${THEME_DEV}" == 'True' ] ; then
Copy link
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.

3 participants