docker-rails 0.3.0 → 0.3.1

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: 624744c054f732376d581da291aa2a1130e2a95b
4
- data.tar.gz: c764f8d565d3ec58200ca31a67164bf6391001f3
3
+ metadata.gz: 52b6b65dc737230fe132456a384179de3a42a2c1
4
+ data.tar.gz: a8cae9865e9b9bc5dbceb954746e32a5b02708ac
5
5
  SHA512:
6
- metadata.gz: b5b11391ff8287cb3b213e19c60d4932eaf613ecb9e03cf24617940e4a5ae339b607e1b5f73a804810930be60efd41a1d45aee3c76b674dda3218b5926e14b48
7
- data.tar.gz: 0727cd30a851867474794b0556f8c0064d5d8a79222aa903783a4948813595d84af8c3e741eca15feda654138f93564cfe6fc44af2bd3a05712e6cbf52109320
6
+ metadata.gz: 4e6c98d4b1bf72679aeb9a1002bb85b4e46434923202dd79ca9366695a4543f67a18e07f05629bdaeb5f3a29f6b261b43c56a0d32e718548252214bf398bfe06
7
+ data.tar.gz: aec9dd8c82ab3e4922c49b3ce862575463d412f15cf6800b191b9dfdb830bf44a450557fe3e9df5c05895abcd4356e28a5808a80cd3c7165519035f2d0524c62
data/README.md CHANGED
@@ -277,7 +277,7 @@ compose:
277
277
 
278
278
  ### 3. Run it
279
279
 
280
- `bundle exec docker-rails ci 111 test`
280
+ `bundle exec docker-rails ci --build=111 test`
281
281
 
282
282
  ### 4. Submit pull requests!
283
283
 
@@ -123,6 +123,18 @@ module Docker
123
123
  exec "docker exec -it #{container_name} bash"
124
124
  end
125
125
 
126
+ # Create global gems data volume to cache gems for this version of ruby
127
+ def create_gems_volume
128
+ begin
129
+ Docker::Container.get(@gems_volume_name)
130
+ puts "Gem data volume container #{@gems_volume_name} already exists."
131
+ rescue Docker::Error::NotFoundError => e
132
+
133
+ exec "docker create -v #{@gems_volume_path} --name #{@gems_volume_name} busybox"
134
+ puts "Gem data volume container #{@gems_volume_name} created."
135
+ end
136
+ end
137
+
126
138
  protected
127
139
 
128
140
  def exec(cmd, capture = false)
@@ -7,16 +7,7 @@ module Docker
7
7
 
8
8
  desc 'create', 'Create a gem volume'
9
9
  def create(target = nil)
10
- # Create global gems data volume to cache gems for this version of ruby
11
- app = App.configured(target, options)
12
- begin
13
- Docker::Container.get(app.gems_volume_name)
14
- puts "Gem data volume container #{app.gems_volume_name} already exists."
15
- rescue Docker::Error::NotFoundError => e
16
-
17
- exec "docker create -v #{app.gems_volume_path} --name #{app.gems_volume_path} busybox"
18
- puts "Gem data volume container #{app.gems_volume_name} created."
19
- end
10
+ App.configured(target, options).create_gems_volume
20
11
  end
21
12
 
22
13
 
@@ -1,5 +1,5 @@
1
1
  module Docker
2
2
  module Rails
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ross
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-21 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler