minke 1.13.9 → 1.13.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9e8e41df805b4ae39e2b77c7ee0a3556bbc25be
4
- data.tar.gz: 1ea8151c518be563da7fabd04bfb9d8ae23dfede
3
+ metadata.gz: 9d6c70ac5b53ba36744cc09453df044b63bc020a
4
+ data.tar.gz: bfb537c17a7a55425ee172aaf36878b29ef9d405
5
5
  SHA512:
6
- metadata.gz: f3722a5affda81a67ba07a8bc08b791e8ee57dbf404bd0e3f5407283a4a61d9a61c83fb7b7b2e15f6eb46cc54fa3d546ada6fff1cfe85152ce2b4dca3ed31e08
7
- data.tar.gz: 404a404c30fa0aa2cbab7ae66acb122748dba8f84c6eaea2fc8baeb988db0c66e2c6d26831bb1313d30c8afad8da428edf2a64ca35e11db03d21ff0c2e198912
6
+ metadata.gz: 46800a54dfffb96517d1d88c4863fa061854ee4d951582305bb808bce14469a638bc42174a860877d0c9144adf851558b1ed6933850ef47cf885abe80a550d70
7
+ data.tar.gz: 3253eb9db99d248c24dca0709f19e093de150427f214a0c8b8cba101b7e502d8fa950bf5a81a4200718c0b6c1de5e242de6df34d58f1fd29a0c1f9d1d12fc08f
data/.travis.yml CHANGED
@@ -30,7 +30,7 @@ after_deploy:
30
30
  docker build -t nicholasjackson/minke --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VCS_REF=`git rev-parse --short HEAD` .;
31
31
  docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
32
32
  docker push nicholasjackson/minke:latest;
33
- docker tag nicholasjackson/minke nicholasjackson/minke:1.13.9;
34
- docker push nicholasjackson/minke:1.13.9;
33
+ docker tag nicholasjackson/minke nicholasjackson/minke:1.13.10;
34
+ docker push nicholasjackson/minke:1.13.10;
35
35
  curl https://hooks.microbadger.com/images/nicholasjackson/minke/tkpohfdrYPE0B0TL5NzLcOap4k0=;
36
36
  fi
data/docker/Gemfile CHANGED
@@ -8,8 +8,8 @@ gem "cucumber"
8
8
  gem "cucumber-rest-api", "= 0.3"
9
9
  gem 'cucumber-api', '~> 0.3'
10
10
 
11
- gem 'minke', "= 1.13.9"
12
- gem 'minke-generator-swift', "= 0.2.2"
11
+ gem 'minke', "= 1.13.10"
12
+ gem 'minke-generator-swift', "= 0.4"
13
13
  gem 'minke-generator-netmvc'
14
14
  gem 'minke-generator-go', "= 0.8.5"
15
15
  gem 'minke-generator-spring'
data/lib/minke/command.rb CHANGED
@@ -27,7 +27,8 @@ module Minke
27
27
  task_runner = Minke::Tasks::TaskRunner.new ({
28
28
  :rake_helper => Minke::Helpers::Rake.new,
29
29
  :copy_helper => Minke::Helpers::Copy.new,
30
- :service_discovery => Minke::Docker::ServiceDiscovery.new(project_name, Minke::Docker::DockerRunner.new(logger), network_name)
30
+ :service_discovery => Minke::Docker::ServiceDiscovery.new(project_name, Minke::Docker::DockerRunner.new(logger), network_name),
31
+ :logger_helper => logger
31
32
  })
32
33
 
33
34
  consul = Minke::Docker::Consul.new(
@@ -70,9 +71,10 @@ module Minke
70
71
  :fetch => Minke::Tasks::Fetch.new(dependencies),
71
72
  :build => Minke::Tasks::Build.new(dependencies),
72
73
  :test => Minke::Tasks::Test.new(dependencies),
74
+ :run => Minke::Tasks::Run.new(dependencies),
73
75
  :build_image => Minke::Tasks::BuildImage.new(dependencies),
74
- :cucumber => Minke::Tasks::Cucumber.new(dependencies),
75
- :push => Minke::Tasks::Push.new(dependencies)
76
+ :cucumber => Minke::Tasks::Cucumber.new(dependencies),
77
+ :push => Minke::Tasks::Push.new(dependencies)
76
78
  }
77
79
  end
78
80
 
@@ -100,6 +102,13 @@ module Minke
100
102
  end
101
103
  end
102
104
 
105
+ def run
106
+ if config.run != nil
107
+ tasks = create_tasks :run
108
+ tasks[:run].run
109
+ end
110
+ end
111
+
103
112
  def build_image
104
113
  if config.test != nil
105
114
  test
@@ -121,4 +130,4 @@ module Minke
121
130
  end
122
131
 
123
132
  end
124
- end
133
+ end
@@ -1,5 +1,5 @@
1
1
  #!/bin/bash
2
- MINKE_VERSION="1.13.9"
2
+ MINKE_VERSION="1.13.10"
3
3
 
4
4
  DOCKER_SOCK="/var/run/docker.sock:/var/run/docker.sock"
5
5
  NEW_UUID=$(base64 /dev/urandom | tr -d '/+' | head -c 32 | tr '[:upper:]' '[:lower:]')
@@ -21,7 +21,7 @@ if [[ $1 != \generate* ]]; then
21
21
  done < <(grep :path Gemfile)
22
22
 
23
23
  DIR=$(dirname `pwd`)
24
- DOCKER_RUN="docker run --rm --net=minke_${NEW_UUID} ${GEM_VOLUMES} -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor:/usr/local/bundle -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR}/_build ${DOCKER_IMAGE} ${COMMAND}"
24
+ DOCKER_RUN="docker run ${IT} --rm --net=minke_${NEW_UUID} ${GEM_VOLUMES} -v ${DOCKER_SOCK} -v ${DIR}:${DIR} -v ${DIR}/_build/vendor:/usr/local/bundle -e DOCKER_NETWORK=minke_${NEW_UUID} -w ${DIR}/_build ${DOCKER_IMAGE} ${COMMAND}"
25
25
 
26
26
  echo "Running command: minke ${COMMAND}"
27
27
 
@@ -6,6 +6,7 @@ module Minke
6
6
  @rake_helper = args[:rake_helper]
7
7
  @copy_helper = args[:copy_helper]
8
8
  @service_discovery = args[:service_discovery]
9
+ @logger = args[:logger_helper]
9
10
  end
10
11
 
11
12
  ##
@@ -25,9 +26,12 @@ module Minke
25
26
  ##
26
27
  # copys the assets defined in the step
27
28
  def copy_assets assets
28
- assets.each { |a| @copy_helper.copy_assets a.from, a.to }
29
+ assets.each do |a|
30
+ @logger.debug "Copy #{a.from} To #{a.to}"
31
+ @copy_helper.copy_assets a.from, a.to
32
+ end
29
33
  end
30
34
 
31
35
  end
32
36
  end
33
- end
37
+ end
data/lib/minke/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Minke
2
- VERSION = "1.13.9"
2
+ VERSION = "1.13.10"
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.13.9
4
+ version: 1.13.10
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-10-04 00:00:00.000000000 Z
11
+ date: 2016-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler