-
Notifications
You must be signed in to change notification settings - Fork 13
Use bundle to execute commands #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@yegor256 please, pay attention to this pull request |
bash/deploy.sh
Outdated
if [ -r ${DEPLOY_CONFIG} ]; then | ||
jekyll build --config _config.yml,${DEPLOY_CONFIG} | ||
if [ -r ${BUNDLE} ]; then | ||
if [ -r ${DEPLOY_CONFIG} ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmydlarz looks like code duplication for me. How about passing $5
as bundle exec
and just using it here as a prefix.
bin/jgd
Outdated
@@ -22,6 +23,7 @@ fail 'branch-from can\'t be empty' if branch_from.empty? | |||
fail 'config can\'t be empty' if config.empty? | |||
url = opts[:url] | |||
url = `git config --get remote.origin.url`.strip if url.empty? | |||
bundle = opts[:bundle] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmydlarz here: bundle = opts[:bundle] ? 'bundle exec' : ''
build.sh
Outdated
@@ -0,0 +1,3 @@ | |||
#!/bin/bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmydlarz maybe let's just put this into README? What's the point of having this file here?
@dmydlarz see my comments above |
@yegor256 what do you think now? |
@rultor try to merge |
@yegor256 I am not into RubyGems at all. Is it gonna be published there somehow automatically? |
@rultor release, tag is |
Add flag to make it possible to run build commands via bundle.
Additionally add build.sh script. I spend some time figuring out how to build & install locally.