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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc11abe7e3d34afd6151b4db6d6cfe150e1c4e72
4
- data.tar.gz: bf8dbec10a628ae975899a91f3fcbd68a0676ad5
3
+ metadata.gz: 99aec1b0d91ba3849d87a5b292084e7c9349d8f2
4
+ data.tar.gz: 459f0a15b90b4f85f2d300da29fba1bd7479646e
5
5
  SHA512:
6
- metadata.gz: 3e370e9e0ae786175092cc863a89c478a20d1e1db764794381b451803bc95662275e93f20bb6299c1e19d14acad50c57d02fce370563a1ff7620532e1ac73ec1
7
- data.tar.gz: 56ddaf4b092ede2fd196f91934a99e6c0a298b61a125f0d216830eb4a4c3bd6986cb8d01d1c4288981972fae5a70d2da942cad18eb928ca55d80beaa5baebbf1
6
+ metadata.gz: 3cc7c2f7a9aabd61863fe38b50939e2acb897cf5636b46cf3073c6a7d54d6b33e7dbddaecdf9577e1743e2e4824bb60dfa644cb542695c4feece06f3c810d4a5
7
+ data.tar.gz: dc2163ec515938293c89c4e99b2409c6a56035785f7773b9d5e7f498cdc6cd0d6293363d630dfdbc742378390450d80da3a1558088a87a1d2f9766925f258c59
@@ -92,7 +92,6 @@ module PgBundle
92
92
 
93
93
  def make_install_cmd(name)
94
94
  <<-CMD.gsub(/\s+/, ' ').strip
95
- mkdir -p #{load_destination(name)} &&
96
95
  cd #{load_destination(name)} &&
97
96
  #{sudo} make clean &&
98
97
  #{sudo} make &&
@@ -10,19 +10,18 @@ module PgBundle
10
10
  end
11
11
 
12
12
  def load(host, user, dest)
13
- clone(dest)
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(dest)
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
@@ -1,3 +1,3 @@
1
1
  module Pgbundle
2
- VERSION = '0.0.12'
2
+ VERSION = '0.0.13'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgbundle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Kniep