docker_rails_proxy 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docker_rails_proxy/commands/rails.rb +8 -0
- data/lib/docker_rails_proxy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fad751379dd5d549c8011a29940d27331f621f795e51eabab58e3dcc1255333
|
4
|
+
data.tar.gz: 39192659415b1591d866f09db17bde167208dfaf9a54e4d980820ee3e855720b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7138508ef6629f939d0c9639bfd9dfbc6fa57e23e5f3f7745998c856d2da0c258c8b16b58d9eb00f69fbae212f039b6d3341973704d8aebb5daaaf0396448f70
|
7
|
+
data.tar.gz: 291bc344901a060ed5a7dd7bdaf7f48b75bab002ee982e0f323d459d3b7e7fbb11f8c42a60cad8195cab00b3945849deb657811a1708f72bd8f3fea231f15a9b
|
@@ -11,6 +11,7 @@ module DockerRailsProxy
|
|
11
11
|
when 'logs' then logs
|
12
12
|
when 'restart', 'touch' then restart
|
13
13
|
when 'secrets' then secrets
|
14
|
+
when 'credentials' then credentials
|
14
15
|
else
|
15
16
|
execute "bin/rails #{command} #{args.join(' ')}", tty: true
|
16
17
|
end
|
@@ -49,5 +50,12 @@ module DockerRailsProxy
|
|
49
50
|
def secrets
|
50
51
|
execute "bash -c 'EDITOR=vim bin/rails secrets:edit'", tty: true
|
51
52
|
end
|
53
|
+
|
54
|
+
def credentials
|
55
|
+
#environment = args.first
|
56
|
+
#raise 'Invalid environment' if environment.present? && !%w[development stage].include?(environment)
|
57
|
+
command = "RAILS_ENV=#{args.first} EDITOR=vim bin/rails credentials:edit"
|
58
|
+
execute "bash -c '#{command}'", tty: true
|
59
|
+
end
|
52
60
|
end
|
53
61
|
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.14
|
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:
|
12
|
+
date: 2020-03-14 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Configures docker-compose and provides rails command helpers
|
15
15
|
email:
|