http_stub_docker 0.0.12 → 0.1.0

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: 6599a87f92ffc3ce74550850979928fbe831ec86
4
- data.tar.gz: 75d11de4a0b547d3bcb51c2800fce29545daadb7
3
+ metadata.gz: e91403cd4f85dea881d8bb8aa357a2d8abff6432
4
+ data.tar.gz: c56cdf6e9959ecc71befd19cb214401e8e725352
5
5
  SHA512:
6
- metadata.gz: 2549f41fc632d4c69bc82924f540ee165b7776c63134e4d0a7271a4ca7b8cd722d0053ef3cd0cd9a5839c12f94d3c34b61861ae41d8219d796b74ede1e91c81f
7
- data.tar.gz: 735066ebf1b02dfeb41feff504d0b27e8d2929881e92a2fa507d2c45b4f4db448e43c3ab5532d5a44d54f8f86d2008b683e014880dc396c352e6761a77141a12
6
+ metadata.gz: '0068a562c753298fedc0e880bd50ce6496e87b1aab087a277dadcf984feb764204d1350a07e0ab50f2145152a14b4a6bfff9ec73c4de91b54376384b0439dbb6'
7
+ data.tar.gz: ac2beddceced91b9538d1a4e1637c9fe4693ffc502b60ebabe4388d9c725a90516baec0049ef931522838c7c62d784ac99e74b973fadd9e13efea744d3e6d022
@@ -15,31 +15,31 @@ module HttpStubDocker
15
15
  def define_build_task(args)
16
16
  desc "Builds the image"
17
17
  task(:build) do
18
- system "docker build -t #{args.stub_name} ."
18
+ sh "docker build -t #{args.stub_name} ."
19
19
  end
20
20
  end
21
21
 
22
22
  def define_start_task(args)
23
23
  desc "Starts a container"
24
24
  task(:start) do
25
- system "docker run -d " \
26
- "-p #{args.port}:#{args.port} " \
27
- "-e STUB_EXTERNAL_BASE_URI=#{args.external_base_uri} " \
28
- "#{args.stub_name}"
25
+ sh "docker run -d " \
26
+ "-p #{args.port}:#{args.port} " \
27
+ "-e STUB_EXTERNAL_BASE_URI=#{args.external_base_uri} " \
28
+ "#{args.stub_name}"
29
29
  end
30
30
  end
31
31
 
32
32
  def define_connect_task(args)
33
33
  desc "Connects to a running container"
34
34
  task(:connect) do
35
- system "docker exec -it #{container_ids(args).first} /bin/sh"
35
+ sh "docker exec -it #{container_ids(args).first} /bin/sh"
36
36
  end
37
37
  end
38
38
 
39
39
  def define_stop_task(args)
40
40
  desc "Stops all containers"
41
41
  task(:stop) do
42
- container_ids(args).each { |container_id| system "docker rm -f #{container_id}" }
42
+ container_ids(args).each { |container_id| sh "docker rm -f #{container_id}" }
43
43
  end
44
44
  end
45
45
 
@@ -40,7 +40,7 @@ module HttpStubDocker
40
40
  def define_publish_task(args)
41
41
  desc "Publishes the container"
42
42
  task(publish: "#{args.task_prefix}docker:build") do
43
- raise "Error publishing container" unless system "#{PUBLISH_SCRIPT} #{args.stub_name} #{args.version}"
43
+ sh "#{PUBLISH_SCRIPT} #{args.stub_name} #{args.version}"
44
44
  end
45
45
  end
46
46
 
@@ -1,4 +1,4 @@
1
- FROM ruby:2.3.1-alpine
1
+ FROM ruby:2.4.0-alpine
2
2
 
3
3
  # Update Bundler
4
4
  RUN gem install bundler
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_stub_docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - dueckes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-25 00:00:00.000000000 Z
11
+ date: 2017-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.26'
33
+ version: '0.27'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.26'
40
+ version: '0.27'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.44'
47
+ version: '0.47'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.44'
54
+ version: '0.47'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -122,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
- version: '2.0'
125
+ version: 2.2.2
126
126
  required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - ">="
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project: http_stub_docker
133
- rubygems_version: 2.5.1
133
+ rubygems_version: 2.6.10
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: Docker tools for http_stub