minke 1.9.9 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/minke/scripts/minke.sh +17 -6
- data/lib/minke/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Mzg1Y2JlMzZhZmM1YjYwNjgzOGNmMjhiNDZkNTMyMGE0NGMzMGU1OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzZlMDAxMzNmN2E2NTJiZTA4ZGMyZGRhYjIyMzZkODBmYjZlYmYwYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTY2ZDlmZTQyNzI5ZjAyOWM2ZmZkOWNlZWFhMGIzNGVkMDA5NWEyYzRkOTk3
|
10
|
+
NGIzMjdiYzk1NDFmOWViODQ3ZjQ4YWFmNzk2NzA3MWUyY2RhM2RiOWMyOTJh
|
11
|
+
YTAwZDlmYTY3ZjQ3NDEwMmRlMTMzOWVjODFjY2M0NzcyNzZlOWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MGEyZDMyNzc1MmQ5MzAwMTAxNTdhMWQ3MjVhNDZkYTZiZTdjZTlhMWY4NmI2
|
14
|
+
ZmViMTI5NGVmMmNjYjlhZGMxYTVkODAzNzY2OTMzODkyY2JmMmY0OWM2NWNm
|
15
|
+
YmI5YzE4NjMxYzA5ZTliZmQ4MDZlYjcxMmNiNDg2MzYzM2E1YjM=
|
data/lib/minke/scripts/minke.sh
CHANGED
@@ -4,7 +4,7 @@ RVM_COMMAND="source /usr/local/rvm/scripts/rvm"
|
|
4
4
|
ERROR="Please specify a command e.g. ./minke.sh rake app:test"
|
5
5
|
COMMAND=""
|
6
6
|
NEW_UUID=$(base64 /dev/urandom | tr -d '/+' | head -c 32 | tr '[:upper:]' '[:lower:]')
|
7
|
-
GEMSET
|
7
|
+
GEMSET='minkegems'
|
8
8
|
GEMSETFOLDER="/usr/local/rvm/gems/ruby-2.3.1@${GEMSET}"
|
9
9
|
|
10
10
|
if [ "$1" == '' ]; then
|
@@ -13,10 +13,21 @@ if [ "$1" == '' ]; then
|
|
13
13
|
fi
|
14
14
|
|
15
15
|
COMMAND=$*
|
16
|
-
DIR=$(dirname `pwd`)
|
17
16
|
|
18
|
-
|
17
|
+
if [[ $1 == \ -g* ]]; then
|
18
|
+
echo "Generating new template"
|
19
|
+
DIR=${PWD}
|
20
|
+
DOCKER_RUN="docker run --rm -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor/gems:${GEMSETFOLDER} -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR} nicholasjackson/minke /bin/bash -c '${RVM_COMMAND} && bundle install && minke ${COMMAND}'"
|
21
|
+
eval "${DOCKER_RUN}"
|
22
|
+
fi
|
23
|
+
|
24
|
+
if [[ $1 != \ -g* ]]; then
|
25
|
+
DIR=$(dirname `pwd`)
|
26
|
+
DOCKER_RUN="docker run --rm --net=minke_${NEW_UUID} -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor/gems:${GEMSETFOLDER} -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR}/_build nicholasjackson/minke /bin/bash -c '${RVM_COMMAND} && ${COMMAND}'"
|
19
27
|
|
20
|
-
|
21
|
-
|
22
|
-
eval "docker network
|
28
|
+
echo "Running command: ${COMMAND}"
|
29
|
+
|
30
|
+
eval "docker network create minke_${NEW_UUID}"
|
31
|
+
eval "${DOCKER_RUN}"
|
32
|
+
eval "docker network rm minke_${NEW_UUID}"
|
33
|
+
fi
|
data/lib/minke/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nic Jackson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|