chef-deploy 0.2.5 → 0.2.6.b

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'date'
5
5
  require 'spec/rake/spectask'
6
6
 
7
7
  GEM = "chef-deploy"
8
- GEM_VERSION = "0.2.5"
8
+ GEM_VERSION = "0.2.6.b"
9
9
  AUTHOR = "Ezra Zygmuntowicz"
10
10
  EMAIL = "Your Email"
11
11
  HOMEPAGE = "http://example.com"
@@ -163,7 +163,12 @@ class CachedDeploy
163
163
  end
164
164
 
165
165
  def run(cmd)
166
- Chef::Mixin::Command.run_command(:command => cmd, :user => user)
166
+ user_homedir = Etc.getpwnam(user).dir
167
+ Chef::Mixin::Command.run_command(
168
+ :command => cmd,
169
+ :user => user,
170
+ :environment => {"HOME" => user_homedir}
171
+ )
167
172
  end
168
173
 
169
174
  def sudo(cmd)
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ prerelease: true
5
+ segments:
6
+ - 0
7
+ - 2
8
+ - 6
9
+ - b
10
+ version: 0.2.6.b
5
11
  platform: ruby
6
12
  authors:
7
13
  - Ezra Zygmuntowicz
@@ -9,7 +15,7 @@ autorequire: chef-deploy
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-10-04 00:00:00 -04:00
18
+ date: 2010-04-01 00:00:00 -07:00
13
19
  default_executable:
14
20
  dependencies: []
15
21
 
@@ -28,9 +34,9 @@ files:
28
34
  - README.rdoc
29
35
  - Rakefile
30
36
  - TODO
31
- - lib/chef-deploy/cached_deploy.rb
32
37
  - lib/chef-deploy/git.rb
33
38
  - lib/chef-deploy/subversion.rb
39
+ - lib/chef-deploy/cached_deploy.rb
34
40
  - lib/chef-deploy.rb
35
41
  has_rdoc: true
36
42
  homepage: http://example.com
@@ -45,18 +51,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
45
51
  requirements:
46
52
  - - ">="
47
53
  - !ruby/object:Gem::Version
54
+ segments:
55
+ - 0
48
56
  version: "0"
49
- version:
50
57
  required_rubygems_version: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ">="
59
+ - - ">"
53
60
  - !ruby/object:Gem::Version
54
- version: "0"
55
- version:
61
+ segments:
62
+ - 1
63
+ - 3
64
+ - 1
65
+ version: 1.3.1
56
66
  requirements: []
57
67
 
58
68
  rubyforge_project:
59
- rubygems_version: 1.3.4
69
+ rubygems_version: 1.3.6
60
70
  signing_key:
61
71
  specification_version: 3
62
72
  summary: A gem that provides...