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.
Files changed (3) hide show
  1. data/chef-sudo.gemspec +1 -1
  2. data/lib/chef-sudo.rb +2 -2
  3. metadata +4 -4
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "chef-sudo"
6
- s.version = "0.2.1"
6
+ s.version = "0.2.2"
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Mariusz Pietrzyk"]
9
9
  s.email = ["wijet@wijet.pl"]
@@ -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{ -- cd #{@new_resource.cwd} && #{@new_resource.command}}
77
+ command << %Q{ bash -c "cd #{@new_resource.cwd} && #{@new_resource.command}"}
78
78
  else
79
- command << %Q{ -- #{@new_resource.command}}
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: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
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-10-29 00:00:00 +02:00
18
+ date: 2010-11-02 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency