pgbundle 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pgbundle/database.rb +0 -1
- data/lib/pgbundle/github_source.rb +5 -6
- data/lib/pgbundle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99aec1b0d91ba3849d87a5b292084e7c9349d8f2
|
4
|
+
data.tar.gz: 459f0a15b90b4f85f2d300da29fba1bd7479646e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cc7c2f7a9aabd61863fe38b50939e2acb897cf5636b46cf3073c6a7d54d6b33e7dbddaecdf9577e1743e2e4824bb60dfa644cb542695c4feece06f3c810d4a5
|
7
|
+
data.tar.gz: dc2163ec515938293c89c4e99b2409c6a56035785f7773b9d5e7f498cdc6cd0d6293363d630dfdbc742378390450d80da3a1558088a87a1d2f9766925f258c59
|
data/lib/pgbundle/database.rb
CHANGED
@@ -10,19 +10,18 @@ module PgBundle
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def load(host, user, dest)
|
13
|
-
clone
|
13
|
+
clone
|
14
14
|
if host == 'localhost'
|
15
|
-
copy_local(clone_dir, dest)
|
15
|
+
copy_local("#{clone_dir}/", dest)
|
16
16
|
else
|
17
|
-
copy_to_remote(host, user, clone_dir, dest)
|
17
|
+
copy_to_remote(host, user, "#{clone_dir}/", dest)
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
21
|
private
|
22
22
|
|
23
|
-
def clone
|
24
|
-
%x((#{git_command} && rm -rf #{clone_dir}/.git}) 2>&1)
|
25
|
-
|
23
|
+
def clone
|
24
|
+
%x((rm -rf #{clone_dir} && #{git_command} && rm -rf #{clone_dir}/.git}) 2>&1)
|
26
25
|
unless $?.success?
|
27
26
|
fail GitCommandError, git_command
|
28
27
|
end
|
data/lib/pgbundle/version.rb
CHANGED