vmc 0.3.15 → 0.3.16.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- data/config/clients.yml +7 -5
- data/lib/cli/commands/admin.rb +2 -2
- data/lib/cli/commands/apps.rb +414 -380
- data/lib/cli/commands/base.rb +162 -9
- data/lib/cli/commands/manifest.rb +56 -0
- data/lib/cli/commands/services.rb +5 -6
- data/lib/cli/commands/user.rb +1 -1
- data/lib/cli/config.rb +17 -9
- data/lib/cli/manifest_helper.rb +238 -0
- data/lib/cli/runner.rb +24 -10
- data/lib/cli/tunnel_helper.rb +36 -11
- data/lib/cli/version.rb +1 -1
- data/lib/cli.rb +2 -0
- data/lib/vmc/client.rb +29 -19
- data/lib/vmc/const.rb +7 -7
- metadata +29 -13
data/config/clients.yml
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
redis:
|
2
|
-
redis-cli:
|
2
|
+
redis-cli: -h ${host} -p ${port} -a ${password}
|
3
3
|
|
4
4
|
mysql:
|
5
|
-
mysql:
|
6
|
-
mysqldump:
|
5
|
+
mysql: --protocol=TCP --host=${host} --port=${port} --user=${user} --password=${password} ${name}
|
6
|
+
mysqldump: --protocol=TCP --host=${host} --port=${port} --user=${user} --password=${password} ${name} > ${Output file}
|
7
7
|
|
8
8
|
mongodb:
|
9
|
-
mongo:
|
9
|
+
mongo: --host ${host} --port ${port} -u ${user} -p ${password} ${name}
|
10
|
+
mongodump: --host ${host} --port ${port} -u ${user} -p ${password} --db ${name}
|
11
|
+
mongorestore: --host ${host} --port ${port} -u ${user} -p ${password} --db ${name} ${Directory or filename to restore from}
|
10
12
|
|
11
13
|
postgresql:
|
12
14
|
psql:
|
13
|
-
command:
|
15
|
+
command: -h ${host} -p ${port} -d ${name} -U ${user} -w
|
14
16
|
environment:
|
15
17
|
- PGPASSWORD='${password}'
|
data/lib/cli/commands/admin.rb
CHANGED
@@ -59,8 +59,8 @@ module VMC::Cli::Command
|
|
59
59
|
)
|
60
60
|
err "Aborted" unless proceed
|
61
61
|
end
|
62
|
-
cmd = Apps.new(@options)
|
63
|
-
apps.each { |app| cmd.
|
62
|
+
cmd = Apps.new(@options.merge({ :force => true }))
|
63
|
+
apps.each { |app| cmd.delete(app[:name]) }
|
64
64
|
end
|
65
65
|
|
66
66
|
services = client.services
|