chef-sudo 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/chef-sudo.gemspec +1 -1
- data/lib/chef-sudo.rb +2 -2
- metadata +4 -4
data/chef-sudo.gemspec
CHANGED
data/lib/chef-sudo.rb
CHANGED
@@ -74,9 +74,9 @@ class Chef
|
|
74
74
|
command << "-i" if @new_resource.simulate_initial_login
|
75
75
|
|
76
76
|
if @new_resource.cwd
|
77
|
-
command << %Q{
|
77
|
+
command << %Q{ bash -c "cd #{@new_resource.cwd} && #{@new_resource.command}"}
|
78
78
|
else
|
79
|
-
command << %Q{
|
79
|
+
command << %Q{ bash -c "#{@new_resource.command}"}
|
80
80
|
end
|
81
81
|
|
82
82
|
options = {:command => command.join(' ')}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-sudo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mariusz Pietrzyk
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-11-02 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|