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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzQyOGUzZTJkMmIzMDY5MjkyOWJjZGJlZWIyNjZkNDA4MTY2Yzk2ZQ==
4
+ Mzg1Y2JlMzZhZmM1YjYwNjgzOGNmMjhiNDZkNTMyMGE0NGMzMGU1OA==
5
5
  data.tar.gz: !binary |-
6
- YTNmNGI4N2FmYmVlMGQyMWY2Yzc5MzE3ZTExYjI4NzIyMTgyOWQ2Mw==
6
+ NzZlMDAxMzNmN2E2NTJiZTA4ZGMyZGRhYjIyMzZkODBmYjZlYmYwYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTQ0ZmJkZDM4MzRiYjg3MmE0ODMyMTg5NWM0OWMwN2JiMGY1MTU1ZTMwODU4
10
- MWMyMDBmY2Y0YmY5NWRiZjIyM2RiMjk5NmU1MjQ4MTBmY2M2OWM0MzI2NzVi
11
- YjA1MzZlZTYwNWQ0NjY2MzQ4MWEzMzBjZGNiODdmMGExOWIyNTM=
9
+ YTY2ZDlmZTQyNzI5ZjAyOWM2ZmZkOWNlZWFhMGIzNGVkMDA5NWEyYzRkOTk3
10
+ NGIzMjdiYzk1NDFmOWViODQ3ZjQ4YWFmNzk2NzA3MWUyY2RhM2RiOWMyOTJh
11
+ YTAwZDlmYTY3ZjQ3NDEwMmRlMTMzOWVjODFjY2M0NzcyNzZlOWU=
12
12
  data.tar.gz: !binary |-
13
- OTM3NTMyZDhlZWRjMjFkZjY0NDllMjk0ZGEyNGU2OGZlYzQyMTg2YjJhNjFi
14
- MmQxM2RjNDQ4MmIzM2Y1ZDRhMGJhNGMwNTU5YTg4MzhmMGU3MWZlMDJiMDFh
15
- NDg2MmRmYTVhNmVjZjE0ZmRkZmM0OWRiYzQ4ZmYyMTdiODJjMjg=
13
+ MGEyZDMyNzc1MmQ5MzAwMTAxNTdhMWQ3MjVhNDZkYTZiZTdjZTlhMWY4NmI2
14
+ ZmViMTI5NGVmMmNjYjlhZGMxYTVkODAzNzY2OTMzODkyY2JmMmY0OWM2NWNm
15
+ YmI5YzE4NjMxYzA5ZTliZmQ4MDZlYjcxMmNiNDg2MzYzM2E1YjM=
@@ -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=$(<.ruby-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
- echo "Running command: ${COMMAND}"
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
- eval "docker network create minke_${NEW_UUID}"
21
- eval "docker run --rm -it --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}'"
22
- eval "docker network rm minke_${NEW_UUID}"
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
@@ -1,3 +1,3 @@
1
1
  module Minke
2
- VERSION = "1.9.9"
2
+ VERSION = "1.10.0"
3
3
  end
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.9.9
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-06 00:00:00.000000000 Z
11
+ date: 2016-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler