chef 0.9.10.rc.3 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/chef/provider/script.rb +1 -1
- data/lib/chef/resource/script.rb +9 -0
- data/lib/chef/version.rb +1 -1
- metadata +8 -12
data/lib/chef/provider/script.rb
CHANGED
@@ -29,7 +29,7 @@ class Chef
|
|
29
29
|
|
30
30
|
set_owner_and_group
|
31
31
|
|
32
|
-
@new_resource.command("\"#{@new_resource.interpreter}\" \"#{script_file.path}\"")
|
32
|
+
@new_resource.command("\"#{@new_resource.interpreter}\" #{@new_resource.flags} \"#{script_file.path}\"")
|
33
33
|
super
|
34
34
|
ensure
|
35
35
|
unlink_script_file
|
data/lib/chef/resource/script.rb
CHANGED
@@ -28,6 +28,7 @@ class Chef
|
|
28
28
|
@command = name
|
29
29
|
@code = nil
|
30
30
|
@interpreter = nil
|
31
|
+
@flags = nil
|
31
32
|
end
|
32
33
|
|
33
34
|
def code(arg=nil)
|
@@ -46,6 +47,14 @@ class Chef
|
|
46
47
|
)
|
47
48
|
end
|
48
49
|
|
50
|
+
def flags(arg=nil)
|
51
|
+
set_or_return(
|
52
|
+
:flags,
|
53
|
+
arg,
|
54
|
+
:kind_of => [ String ]
|
55
|
+
)
|
56
|
+
end
|
57
|
+
|
49
58
|
end
|
50
59
|
end
|
51
60
|
end
|
data/lib/chef/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
4
|
+
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
8
|
- 10
|
9
|
-
|
10
|
-
- 3
|
11
|
-
version: 0.9.10.rc.3
|
9
|
+
version: 0.9.10
|
12
10
|
platform: ruby
|
13
11
|
authors:
|
14
12
|
- Adam Jacob
|
@@ -16,7 +14,7 @@ autorequire:
|
|
16
14
|
bindir: bin
|
17
15
|
cert_chain: []
|
18
16
|
|
19
|
-
date: 2010-10-
|
17
|
+
date: 2010-10-19 00:00:00 -07:00
|
20
18
|
default_executable:
|
21
19
|
dependencies:
|
22
20
|
- !ruby/object:Gem::Dependency
|
@@ -59,9 +57,9 @@ dependencies:
|
|
59
57
|
- !ruby/object:Gem::Version
|
60
58
|
segments:
|
61
59
|
- 1
|
62
|
-
-
|
60
|
+
- 2
|
63
61
|
- 0
|
64
|
-
version: 1.
|
62
|
+
version: 1.2.0
|
65
63
|
type: :runtime
|
66
64
|
version_requirements: *id003
|
67
65
|
- !ruby/object:Gem::Dependency
|
@@ -595,13 +593,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
595
593
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
596
594
|
none: false
|
597
595
|
requirements:
|
598
|
-
- - "
|
596
|
+
- - ">="
|
599
597
|
- !ruby/object:Gem::Version
|
600
598
|
segments:
|
601
|
-
-
|
602
|
-
|
603
|
-
- 1
|
604
|
-
version: 1.3.1
|
599
|
+
- 0
|
600
|
+
version: "0"
|
605
601
|
requirements: []
|
606
602
|
|
607
603
|
rubyforge_project:
|