github_backup 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 37a2b7f4768ee2c7be23da89f68a550b209a4f6cfe4d72280017865a58ad1e31
4
- data.tar.gz: a5173f3ae6207de170e3f1017c48a917cec9fe061573421906898c56c588a409
3
+ metadata.gz: 192654ccbb33c1fcc007563dd7e47d3a1f85b3dec55dbbdf33d522201130c209
4
+ data.tar.gz: f6b0ee87efb3327bec097df194e92142adbb4084694f6fc9abe2e462a35a6776
5
5
  SHA512:
6
- metadata.gz: 49f98e78dfadecf226771092f84c3dd0e63d8ed8e16325940de67eb94b914c692c38afd8d8b8cacfa6a6caa6bbcf7cd488311db43b34d5ad6f0dadf8f9bb2859
7
- data.tar.gz: 7e12ccc164ded1431278d2c7328610ff3fb0e635a4b8ffed1b4dacfbf65cde7aaca8f5e4b1cdaf9e6b720c5b128359b943258a5ddd65e173a67b5eab83d0fb1e
6
+ metadata.gz: a7b43c5a31d44eed68b09f900b88535388b4ed88ea9e3e6f67fc261e21604ce410f79293313db5afcda604a7345ca2853c8c53671fd368f9fe66386ae51cb27c
7
+ data.tar.gz: 51d99cc7709f85d25eae43eafd80c0bb91901be0e2f5f53f77c6faa19bec64653240ead78535e5d4d5e9df603f5c470902b70d915bf61084a5c60336b27a4b1f
data/exe/github-backup CHANGED
@@ -65,6 +65,7 @@ clone_urls.each do |url|
65
65
  FileUtils.mkdir_p(File.dirname(path))
66
66
 
67
67
  @threads << Thread.new do |thread|
68
+ Dir.chdir(path)
68
69
  unless File.exist?(path)
69
70
  cmd = "git clone #{url} #{Shellwords.shellescape(path)}"
70
71
  puts cmd
@@ -72,15 +73,13 @@ clone_urls.each do |url|
72
73
  else
73
74
  puts "Updating existing repo: #{path}"
74
75
  git_updater = GithubBackup::Git.new
75
- Dir.chdir(path)
76
76
  git_updater.update
77
- backup_path = File.expand_path(File.join(config['backup_path'], user))
78
- FileUtils.mkdir_p(backup_path)
79
- bundle = "#{project_name}.gitbundle"
80
- bundle_path = File.join(backup_path, bundle)
81
- puts `git bundle create #{Shellwords.shellescape(bundle_path)} --all --remotes`
82
77
  end
83
-
78
+ backup_path = File.expand_path(File.join(config['backup_path'], user))
79
+ FileUtils.mkdir_p(backup_path)
80
+ bundle = "#{project_name}.gitbundle"
81
+ bundle_path = File.join(backup_path, bundle)
82
+ puts `git bundle create #{Shellwords.shellescape(bundle_path)} --all --remotes`
84
83
  end
85
84
  end
86
85
 
@@ -1,4 +1,4 @@
1
1
  module GithubBackup
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  APP = 'github-backup'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_backup
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
  - Alex Clink
@@ -93,7 +93,6 @@ files:
93
93
  - ".ruby-gemset"
94
94
  - ".ruby-version"
95
95
  - Gemfile
96
- - Gemfile.lock
97
96
  - README.md
98
97
  - Rakefile
99
98
  - bin/console
data/Gemfile.lock DELETED
@@ -1,55 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- github_backup (0.1.1)
5
- http
6
- link_header
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- addressable (2.6.0)
12
- public_suffix (>= 2.0.2, < 4.0)
13
- diff-lcs (1.3)
14
- domain_name (0.5.20180417)
15
- unf (>= 0.0.5, < 1.0.0)
16
- http (4.1.1)
17
- addressable (~> 2.3)
18
- http-cookie (~> 1.0)
19
- http-form_data (~> 2.0)
20
- http_parser.rb (~> 0.6.0)
21
- http-cookie (1.0.3)
22
- domain_name (~> 0.5)
23
- http-form_data (2.1.1)
24
- http_parser.rb (0.6.0)
25
- link_header (0.0.8)
26
- public_suffix (3.0.3)
27
- rake (10.5.0)
28
- rspec (3.8.0)
29
- rspec-core (~> 3.8.0)
30
- rspec-expectations (~> 3.8.0)
31
- rspec-mocks (~> 3.8.0)
32
- rspec-core (3.8.0)
33
- rspec-support (~> 3.8.0)
34
- rspec-expectations (3.8.2)
35
- diff-lcs (>= 1.2.0, < 2.0)
36
- rspec-support (~> 3.8.0)
37
- rspec-mocks (3.8.0)
38
- diff-lcs (>= 1.2.0, < 2.0)
39
- rspec-support (~> 3.8.0)
40
- rspec-support (3.8.0)
41
- unf (0.1.4)
42
- unf_ext
43
- unf_ext (0.0.7.5)
44
-
45
- PLATFORMS
46
- ruby
47
-
48
- DEPENDENCIES
49
- bundler (~> 1.17)
50
- github_backup!
51
- rake (~> 10.0)
52
- rspec (~> 3.0)
53
-
54
- BUNDLED WITH
55
- 1.17.2