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 +5 -5
- data/lib/docker_rails_proxy/version.rb +1 -1
- data/lib/docker_rails_proxy.rb +13 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b0164294d1ebb3a6adf182a0c4daaabe9a17d98f4be20c7d21c5ea3adee9d90a
|
4
|
+
data.tar.gz: efb21021443b56cf98f94a459fb9eccf42893ab15f7b26cf71a97bc5272f577d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ecd5cc237dc544b5c8bdec639c5da6a7f23b7f05876cd223d5bfb84b3841f9f0d8f157853093aba664eaa7c18bd4ed386ed3013a8d26e4148ba72aa0286e277
|
7
|
+
data.tar.gz: 9b1ef9a8d38f8566eee3edfa7300f647dd75c14aa1366cdc0c9d5638bb7b71364807aa75224b37d46b670e4d194017f10767f7db9f4882a0ee4dee0973fc7cf6
|
data/lib/docker_rails_proxy.rb
CHANGED
@@ -195,8 +195,19 @@ module DockerRailsProxy
|
|
195
195
|
end
|
196
196
|
end
|
197
197
|
|
198
|
-
def execute(command,
|
199
|
-
|
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.
|
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-
|
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
|
79
|
+
rubygems_version: 2.7.6
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: docker, docker-compose and rails wrapper
|