aris-control 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aris-control/bookkeeper.rb +0 -2
- data/lib/aris-control/thor.rb +0 -4
- data/lib/aris-control/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4b7c5dc7480d525076af010423e015327c080fe
|
4
|
+
data.tar.gz: fc5018068adbfb2cfe4ea341084924f7c87bca08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e195c14392f14593fa72d8413fbb657439c7b09af40091f9cf2998d25158f86ee6569efaec554cb35be3cec03da697eef71f76142df2cda0ef13582f82c4922
|
7
|
+
data.tar.gz: 079b9c1a199819613b5f5b3df1273746674517c6b654615a04c18e4c0508a0cd225b4dcaaea6d1fb9f5a6fe0653e29682702748e8c4b70157c8aed77737852b2
|
@@ -19,8 +19,6 @@ module ArisControl
|
|
19
19
|
apps[name] = app.dup.tap do |h|
|
20
20
|
h['email'] = opts[:email] || app.fetch('email')
|
21
21
|
h['ssh_key'] = opts[:ssh_key] if opts[:ssh_key]
|
22
|
-
h['pg_role'] = opts[:pg_role] if opts[:pg_role]
|
23
|
-
h['pg_pass'] = opts[:pg_pass] if opts[:pg_pass]
|
24
22
|
h['env_vars'] = with_upcased_keys(env_vars) if env_vars
|
25
23
|
end
|
26
24
|
persistence.store_apps(apps)
|
data/lib/aris-control/thor.rb
CHANGED
@@ -5,15 +5,11 @@ class ArisControl::Thor < Thor
|
|
5
5
|
desc 'add/update appname', 'Adds/Updates an aris app.'
|
6
6
|
method_option :email, type: :string, desc: 'The apps email address. Used for web login.'
|
7
7
|
method_option :ssh_key, type: :string, desc: 'The apps ssh public key. Used for git access via ssh.'
|
8
|
-
method_option :pg_role, type: :string, desc: 'The apps postgres role.'
|
9
|
-
method_option :pg_pass, type: :string, desc: 'The apps postgres password.'
|
10
8
|
method_option :env_vars, type: :hash, desc: 'The apps app env vars. Env vars will be accessible inside the app via ENV[VAR-NAME].'
|
11
9
|
def add(name)
|
12
10
|
opts = Hash.new.tap do |o|
|
13
11
|
o[:email] = options[:email]
|
14
12
|
o[:ssh_key] = options[:ssh_key] if options[:ssh_key]
|
15
|
-
o[:pg_role] = options[:pg_role] if options[:pg_role]
|
16
|
-
o[:pg_pass] = options[:pg_pass] if options[:pg_pass]
|
17
13
|
o[:env_vars] = options[:env_vars] if options[:env_vars]
|
18
14
|
end
|
19
15
|
bookkeeper.add(name, **opts)
|
data/lib/aris-control/version.rb
CHANGED