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 CHANGED
@@ -1,15 +1,17 @@
1
1
  redis:
2
- redis-cli: redis-cli -h ${host} -p ${port} -a ${password}
2
+ redis-cli: -h ${host} -p ${port} -a ${password}
3
3
 
4
4
  mysql:
5
- mysql: mysql --protocol=TCP --host=${host} --port=${port} --user=${user} --password=${password} ${name}
6
- mysqldump: mysqldump --protocol=TCP --host=${host} --port=${port} --user=${user} --password=${password} ${name} > ${Output file}
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: mongo --host ${host} --port ${port} -u ${user} -p ${password} ${name}
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: psql -h ${host} -p ${port} -d ${name} -U ${user} -w
15
+ command: -h ${host} -p ${port} -d ${name} -U ${user} -w
14
16
  environment:
15
17
  - PGPASSWORD='${password}'
@@ -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.delete_app(app[:name], true) }
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