minke 1.9.8 → 1.9.9

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
- MTc1YmJiMDI0MTg5MjM0YWIyZjE4YTA1OWEzNmU1OTcyNTI5NzM0Zg==
4
+ MzQyOGUzZTJkMmIzMDY5MjkyOWJjZGJlZWIyNjZkNDA4MTY2Yzk2ZQ==
5
5
  data.tar.gz: !binary |-
6
- ZDc0ZGZjNzc3NTY3ZDU5MGMxZjBiNjczNDBiMGQ2N2E4NGI3ZWRkMA==
6
+ YTNmNGI4N2FmYmVlMGQyMWY2Yzc5MzE3ZTExYjI4NzIyMTgyOWQ2Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGI1NDRjOWM2YWVjMmY3NzYyZmRmMzNkOGJlNTBiMjllMGQ0NTVjZjg5NWNm
10
- YjU0NjkyMWE4ZjlmNTNhYjA1NDUyY2M4NzVlZTJkODJlZTExYzQ5YzllMjZh
11
- ZmFjOGMzM2IwNzYyZWJhMDdhZmZhYzZmZjg2MmRmMWI1NTljMzk=
9
+ YTQ0ZmJkZDM4MzRiYjg3MmE0ODMyMTg5NWM0OWMwN2JiMGY1MTU1ZTMwODU4
10
+ MWMyMDBmY2Y0YmY5NWRiZjIyM2RiMjk5NmU1MjQ4MTBmY2M2OWM0MzI2NzVi
11
+ YjA1MzZlZTYwNWQ0NjY2MzQ4MWEzMzBjZGNiODdmMGExOWIyNTM=
12
12
  data.tar.gz: !binary |-
13
- NDY0NzkzMTVlZmMxOGNjYzFjOTJkYjMwZGUxOWY4ODAwOGJmMDNiYzViNTFm
14
- ZDQ2YmU3OWQ1YWIxYjgwNjllZDNmMzMzZTc3OTE0YTk5ZjQ2NjVhMjgwYWZi
15
- MzY0OTlmMDQzMzExN2JhMzcwNDc1OWEwNTU5NDEyZDM1ODhjM2E=
13
+ OTM3NTMyZDhlZWRjMjFkZjY0NDllMjk0ZGEyNGU2OGZlYzQyMTg2YjJhNjFi
14
+ MmQxM2RjNDQ4MmIzM2Y1ZDRhMGJhNGMwNTU5YTg4MzhmMGU3MWZlMDJiMDFh
15
+ NDg2MmRmYTVhNmVjZjE0ZmRkZmM0OWRiYzQ4ZmYyMTdiODJjMjg=
@@ -1,32 +1,7 @@
1
1
  module Minke
2
2
  module Generators
3
- SCRIPT = <<-EOF
4
- #!/bin/bash
5
- DOCKER_SOCK="/var/run/docker.sock:/var/run/docker.sock"
6
- RVM_COMMAND="source /usr/local/rvm/scripts/rvm"
7
- ERROR="Please specify a command e.g. ./minke.sh rake app:test"
8
- COMMAND=""
9
- NEW_UUID=$(base64 /dev/urandom | tr -d '/+' | head -c 32 | tr '[:upper:]' '[:lower:]')
10
- GEMSET=$(<.ruby-gemset)
11
- GEMSETFOLDER="/usr/local/rvm/gems/ruby-2.3.1@${GEMSET}"
12
-
13
- if [ "$1" == '' ]; then
14
- echo $ERROR;
15
- exit 1;
16
- fi
17
-
18
- COMMAND=$*
19
- DIR=$(dirname `pwd`)
20
-
21
- echo "Running command: ${COMMAND}"
22
-
23
- eval "docker network create minke_${NEW_UUID}"
24
- 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}'"
25
- eval "docker network rm minke_${NEW_UUID}"
26
- EOF
27
-
28
3
  def write_bash_script path
29
- File.write(path, SCRIPT)
4
+ FileUtils.cp(File.expand_path('../../scripts/minke.sh', __FILE__), path)
30
5
  File.chmod(0755, path)
31
6
  end
32
7
 
@@ -0,0 +1,22 @@
1
+ #!/bin/bash
2
+ DOCKER_SOCK="/var/run/docker.sock:/var/run/docker.sock"
3
+ RVM_COMMAND="source /usr/local/rvm/scripts/rvm"
4
+ ERROR="Please specify a command e.g. ./minke.sh rake app:test"
5
+ COMMAND=""
6
+ NEW_UUID=$(base64 /dev/urandom | tr -d '/+' | head -c 32 | tr '[:upper:]' '[:lower:]')
7
+ GEMSET=$(<.ruby-gemset)
8
+ GEMSETFOLDER="/usr/local/rvm/gems/ruby-2.3.1@${GEMSET}"
9
+
10
+ if [ "$1" == '' ]; then
11
+ echo $ERROR;
12
+ exit 1;
13
+ fi
14
+
15
+ COMMAND=$*
16
+ DIR=$(dirname `pwd`)
17
+
18
+ echo "Running command: ${COMMAND}"
19
+
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}"
data/lib/minke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Minke
2
- VERSION = "1.9.8"
2
+ VERSION = "1.9.9"
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.8
4
+ version: 1.9.9
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-06-28 00:00:00.000000000 Z
11
+ date: 2016-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -225,6 +225,7 @@ files:
225
225
  - lib/minke/rake/app.rake
226
226
  - lib/minke/rake/config.rake
227
227
  - lib/minke/rake/docker.rake
228
+ - lib/minke/scripts/minke.sh
228
229
  - lib/minke/tasks/build.rb
229
230
  - lib/minke/tasks/build_image.rb
230
231
  - lib/minke/tasks/cucumber.rb