ztil 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ztil/command.rb +6 -6
  3. data/lib/ztil.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2974ee4ce44cb15628960237d66cb73a4fa3c71
4
- data.tar.gz: 1cdcf63f5455c12fd8480b74358881e5e82ef996
3
+ metadata.gz: 56be01ea68b404c0a74d17f72deb6b04a17cb13f
4
+ data.tar.gz: 5bdfe0e63a24bfdc7f2df4e1b8bb5c4bba631926
5
5
  SHA512:
6
- metadata.gz: fcd8899b8124c52648a13a808e292b73a660952ea43f09b5c1c0ff4232fef584c56d54421e0056868f55345fa7d0f28978b855affea16e4a2dc2c1d20bea230b
7
- data.tar.gz: f2e2bec7bc0ea6c69b3aba11209629da62ae4f919b3e153b7cb511d31dcc00fc071c9850b5aa575dd200ad3ae2ef76db8a94407422e39cd38ff1d84a408c96ad
6
+ metadata.gz: 5096e0cf9ff5bbff630fb6072685cc8f7d298c19d8b21067428c79fbdb1920f841917b2a2491ab5c1f971512e0160364c833e0b19b39c7e1e96330f0050fe77e
7
+ data.tar.gz: f9d8081959895abc08ab229137100156dc18676840e280715e26595159106d6b6abc0fabbf7fb1eec0bc4fff0b39c549730d1396a9b9052bfd60b292b2b1b924
data/lib/ztil/command.rb CHANGED
@@ -26,12 +26,12 @@ module Ztil
26
26
  #
27
27
  # @example
28
28
  # ztil backup --databases="mysql,mongodb" --storages="qi_niu" --email="xxx@xxx.com" --schedule="1.day&4:30 am" --run_prefix="bundle exec"
29
- desc 'backup DATABASE_NAME', '备份数据库, 传入all表示所有databases'
30
- method_option :databases, desc: '需要备份的数据库类型, 支持mysql以及mongodb', required: true
31
- method_option :storages, desc: '备份数据的存储方式, 支持存储到七牛'
32
- method_option :email, desc: '备份成功后通知的邮箱'
33
- method_option :schedule, desc: '按计划执行, 默认只执行一次'
34
- method_option :run_prefix, desc: '运行命令的前缀, 例如bundle exec'
29
+ desc 'backup DATABASE_NAME', '备份数据库, DATABASE_NAME最好为数据库名称(可修改)'
30
+ method_option :databases, desc: '需要备份的数据库类型, 支持(mongodb, mysql, openldap, postgresql, redis, riak)', required: true, aliases: 'd'
31
+ method_option :storages, desc: '备份数据的存储方式, 支持存储到七牛(local, qi_niu)', aliases: 's'
32
+ method_option :email, desc: '备份成功后通知的邮箱', aliases: 'e'
33
+ method_option :schedule, desc: '按计划执行, 默认只执行一次', aliases: 'S'
34
+ method_option :run_prefix, desc: '运行任务命令的前缀, 例如`bundle exec`', aliases: 'r'
35
35
  def backup(name)
36
36
  storages = options[:storages] || 'local'
37
37
 
data/lib/ztil.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ztil
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ztil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - zires