vx-builder 0.5.45 → 0.5.46

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: e444e7970d55768c02e05dc15184f478d0b6305f
4
- data.tar.gz: 02496744214b2cf5af907a8bba59f41e3bec0dbe
3
+ metadata.gz: 3f218880e3d7bec636acf3812cb233051afc371f
4
+ data.tar.gz: b965ce4e4b9dc625839074ca3f7e6a38213098b8
5
5
  SHA512:
6
- metadata.gz: 38649a2707077f66fe50e9076b8265831f81d930e986cd8834db8cd060736f82d7c69d6a9f8416727c7aec3c86bf171cd81a9a4de2906be47c60701e77e44a33
7
- data.tar.gz: 375bfe1ad70db0ab2dfed78a28f75c8d53895dac5176c9e247722fecc35e8cb7b412130b43a1cdc1f4420abf8f3a4bafff17b391e467e79c77facc555bdf8422
6
+ metadata.gz: 916e80529296c68c5fc7aef7377c3ee2c839a25355692d71c267b3cc675026db80ebb8d686773a75c8e4a6500bff3db56a18fca8c5cbcd5f37dd590e0816a61a
7
+ data.tar.gz: df44aeaffebafc094f85423fe9e684825c649763ac8bed57499908826816541546dd798c1c2d47cdea16f1c75a6c5377b644e57cf1db2878fbd29706fed615fb
@@ -16,11 +16,11 @@ module Vx
16
16
  repo_path = "${VX_ROOT}/code/#{name}"
17
17
  data_path = "${VX_ROOT}/data/#{name}"
18
18
  key_file = "#{data_path}/key"
19
- git_ssh_file = "#{data_path}/git_ssh"
19
+ #git_ssh_file = "#{data_path}/git_ssh"
20
20
 
21
21
  sha = env.task.sha
22
22
  scm = build_scm(env, sha, repo_path)
23
- git_ssh = scm.git_ssh_content(deploy_key && "#{key_file}")
23
+ #git_ssh = scm.git_ssh_content(deploy_key && "#{key_file}")
24
24
 
25
25
  env.init.tap do |i|
26
26
  i << 'export VX_ROOT=$(pwd)'
@@ -38,22 +38,22 @@ module Vx
38
38
  i << "chmod 0750 #{dst}"
39
39
  end
40
40
 
41
+ i << 'echo "starting SSH Agent"'
42
+ i << 'eval "$(ssh-agent)" > /dev/null'
43
+
41
44
  if deploy_key
42
45
  i << upload_sh_command(key_file, deploy_key)
43
46
  i << "chmod 0600 #{key_file}"
44
47
  i << "export VX_PRIVATE_KEY=#{key_file}"
48
+ i << "ssh-add $VX_PRIVATE_KEY 2> /dev/null"
45
49
  end
46
50
 
47
- i << upload_sh_command(git_ssh_file, git_ssh)
48
- i << "chmod 0750 #{git_ssh_file}"
51
+ #i << upload_sh_command(git_ssh_file, git_ssh)
52
+ #i << "chmod 0750 #{git_ssh_file}"
49
53
 
50
- i << "export GIT_SSH=#{git_ssh_file}"
54
+ #i << "export GIT_SSH=#{git_ssh_file}"
51
55
  i << "#{scm.fetch_cmd} || exit 1"
52
- i << "unset GIT_SSH"
53
-
54
- i << 'echo "starting SSH Agent"'
55
- i << 'eval "$(ssh-agent)" > /dev/null'
56
- i << "ssh-add $VX_PRIVATE_KEY 2> /dev/null"
56
+ #i << "unset GIT_SSH"
57
57
 
58
58
  i << "cd #{repo_path}"
59
59
 
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  module Builder
3
- VERSION = "0.5.45"
3
+ VERSION = "0.5.46"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vx-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.45
4
+ version: 0.5.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-09 00:00:00.000000000 Z
11
+ date: 2014-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vx-common