chef-sudo 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/chef-sudo.gemspec +2 -3
- data/lib/chef-sudo.rb +2 -2
- metadata +9 -23
data/chef-sudo.gemspec
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "chef-sudo"
|
6
|
-
s.version = "0.2.
|
6
|
+
s.version = "0.2.1"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["Mariusz Pietrzyk"]
|
9
9
|
s.email = ["wijet@wijet.pl"]
|
@@ -14,8 +14,7 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.required_rubygems_version = ">= 1.3.6"
|
15
15
|
s.rubyforge_project = "chef-sudo"
|
16
16
|
|
17
|
-
s.add_dependency "chef"
|
18
|
-
s.add_development_dependency "bundler", ">= 1.0.0"
|
17
|
+
s.add_dependency "chef", "~> 0.9.0"
|
19
18
|
|
20
19
|
s.files = `git ls-files`.split("\n")
|
21
20
|
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
|
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{ -- cd #{@new_resource.cwd} && #{@new_resource.command}}
|
78
78
|
else
|
79
|
-
command << %Q{ --
|
79
|
+
command << %Q{ -- #{@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: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
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-10-29 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -24,30 +24,16 @@ dependencies:
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 59
|
30
30
|
segments:
|
31
31
|
- 0
|
32
|
-
|
32
|
+
- 9
|
33
|
+
- 0
|
34
|
+
version: 0.9.0
|
33
35
|
type: :runtime
|
34
36
|
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: bundler
|
37
|
-
prerelease: false
|
38
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
hash: 23
|
44
|
-
segments:
|
45
|
-
- 1
|
46
|
-
- 0
|
47
|
-
- 0
|
48
|
-
version: 1.0.0
|
49
|
-
type: :development
|
50
|
-
version_requirements: *id002
|
51
37
|
description: Provides chef sudo resource for executing commands with sudo
|
52
38
|
email:
|
53
39
|
- wijet@wijet.pl
|