docker_rails_proxy 0.1.2 → 0.1.3

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
- SHA1:
3
- metadata.gz: a4026ac476ea99ee3a72ddf37547ab52747a27f9
4
- data.tar.gz: de7015fe408a0a811eedd033b73f22691710737a
2
+ SHA256:
3
+ metadata.gz: b0164294d1ebb3a6adf182a0c4daaabe9a17d98f4be20c7d21c5ea3adee9d90a
4
+ data.tar.gz: efb21021443b56cf98f94a459fb9eccf42893ab15f7b26cf71a97bc5272f577d
5
5
  SHA512:
6
- metadata.gz: 7c2ae47cd8aa7c23504e712100298dc3d7e7a538b15c8f43e2603219e9fb26c042ad3938555ba319e9380ccc4e1fbbc6f1b180246f8728009d60495fd2ea2ccd
7
- data.tar.gz: cdf8645ddc892a3f33d46c1a3023a333c6cfc0a78ffe22fcc66daeec4eb8079aeceb4d9b88eca24fc460ef09a1eb9be0ca89941fd03d43ec4ddc9f9f2309e3f7
6
+ metadata.gz: 1ecd5cc237dc544b5c8bdec639c5da6a7f23b7f05876cd223d5bfb84b3841f9f0d8f157853093aba664eaa7c18bd4ed386ed3013a8d26e4148ba72aa0286e277
7
+ data.tar.gz: 9b1ef9a8d38f8566eee3edfa7300f647dd75c14aa1366cdc0c9d5638bb7b71364807aa75224b37d46b670e4d194017f10767f7db9f4882a0ee4dee0973fc7cf6
@@ -1,3 +1,3 @@
1
1
  module DockerRailsProxy
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
@@ -195,8 +195,19 @@ module DockerRailsProxy
195
195
  end
196
196
  end
197
197
 
198
- def execute(command, tty: false, container_id: app_container_id, replace_process: false, **)
199
- command = "docker exec #{tty ? '-ti' : nil} #{container_id} #{command}"
198
+ def execute(command,
199
+ tty: false,
200
+ container_id: app_container_id,
201
+ replace_process: false,
202
+ user: nil,
203
+ **)
204
+
205
+ options = []
206
+
207
+ options << '-ti' if tty
208
+ options << "-u #{user}" if user
209
+
210
+ command = "docker exec #{options.join(' '.freeze)} #{container_id} #{command}"
200
211
  replace_process ? exec(command) : system(command)
201
212
  end
202
213
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker_rails_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jairo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-02-21 00:00:00.000000000 Z
12
+ date: 2018-03-14 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Configures docker-compose and provides rails command helpers
15
15
  email:
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  requirements: []
78
78
  rubyforge_project:
79
- rubygems_version: 2.6.14
79
+ rubygems_version: 2.7.6
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: docker, docker-compose and rails wrapper