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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98b9f9e25dcf02786098bb4bf02d6500d2f9ceda8b09748c9329c189cc1e7aff
4
- data.tar.gz: 401719cebba7fb6ebdbdcce68a429a72e6cd08f40fb7370e5b67fdcabb853dda
3
+ metadata.gz: 5fad751379dd5d549c8011a29940d27331f621f795e51eabab58e3dcc1255333
4
+ data.tar.gz: 39192659415b1591d866f09db17bde167208dfaf9a54e4d980820ee3e855720b
5
5
  SHA512:
6
- metadata.gz: 778c86cefe3d85ccddcad19e175ef1b125c285179031537713b2a76d88b7b9debb92d584d143845f8e10328d42cb5cb6719687c36b6f2ede06071cdb193556f9
7
- data.tar.gz: 36540e3a5760aea87fad7a5ceedb84c1f75af168b6dfeff503a51d320dbc36b93827453df1d5bd444eeb9cec91ddb3c2e48f9afd7a2e1e7ccb92203217f1ea29
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
@@ -1,3 +1,3 @@
1
1
  module DockerRailsProxy
2
- VERSION = '0.1.13'
2
+ VERSION = '0.1.14'
3
3
  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.13
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: 2019-10-07 00:00:00.000000000 Z
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: