wordpress_config_parser 0.11.0 → 0.12.0

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
  SHA1:
3
- metadata.gz: 38f90fe48a8714b268601c33bced5f5c6e9b00a4
4
- data.tar.gz: 06061cd7e28fad3c370c54b878a790fadeddf822
3
+ metadata.gz: d740393b7f1303d36e5edb50aee40c0aea0a4ded
4
+ data.tar.gz: 120054375a99a66d2e00d97af104182ef0cafce7
5
5
  SHA512:
6
- metadata.gz: a79084d5859d13b9ad4ae2d6692e981ae78e2624da37d3462406071c3a3e73c7d625055eeaf659569e72cec95cf5fa02fc614567f7caafa743ed8b00e2be32f0
7
- data.tar.gz: 7c6a9f9e79f98d727954aba1b442dcd40ca23c91eac408f95c87fc4c81086aa8b7fbe3836930aaa018e67c125c04aef4f880245f8a1e953cf528c6c8fe5b93b4
6
+ metadata.gz: 80b32a47273bb823d3466de4d53fcb4b4bcda8818d4517d43703b5567d89e8f1c4ff3111b30b255813e3d98c29fc15f25a2e1794bb0939b3783d8d448f8adaf4
7
+ data.tar.gz: 40530f368b838f3d0c075cb1834f403a30964e5c2e13a2496cad1fbd27caaf724ba9c3182e73a9f6655c84d649e43d3fe80258837de6c39ed964ba16787d9167
@@ -37,6 +37,11 @@ def run_command(command)
37
37
  end
38
38
 
39
39
 
40
+ def datetime_stamp
41
+ Time.now.strftime('%Y-%m-%d_%H-%M-%S')
42
+ end
43
+
44
+
40
45
  home = ENV['HOME']
41
46
  output_dir = File.join(home, 'sql-backups')
42
47
  blognames = ARGV
@@ -45,7 +50,7 @@ blognames.each do |blogname|
45
50
 
46
51
  blog_dir = File.join(home, 'public_html', blogname)
47
52
  parser = WordpressConfigParser::Parser.new(blog_dir)
48
- outfilespec = File.join(output_dir, "#{blogname}-db-backup.sql")
53
+ outfilespec = File.join(output_dir, "#{blogname}-db-backup-#{datetime_stamp}.sql")
49
54
 
50
55
  user = Shellwords.escape(parser.db_user)
51
56
  password = Shellwords.escape(parser.db_password)
@@ -1,3 +1,3 @@
1
1
  module WordpressConfigParser
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordpress_config_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Bennett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-26 00:00:00.000000000 Z
11
+ date: 2016-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec