microwave 0.1004.4 → 0.1004.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. data/README.rdoc +0 -3
  2. data/lib/chef/client.rb +2 -11
  3. data/lib/chef/platform.rb +1 -192
  4. data/lib/chef/providers.rb +0 -68
  5. data/lib/chef/resources.rb +0 -36
  6. data/lib/chef/version.rb +1 -1
  7. metadata +123 -239
  8. data/lib/chef/provider/breakpoint.rb +0 -31
  9. data/lib/chef/provider/cron.rb +0 -186
  10. data/lib/chef/provider/cron/solaris.rb +0 -195
  11. data/lib/chef/provider/deploy.rb +0 -343
  12. data/lib/chef/provider/deploy/revision.rb +0 -80
  13. data/lib/chef/provider/deploy/timestamped.rb +0 -33
  14. data/lib/chef/provider/env.rb +0 -152
  15. data/lib/chef/provider/env/windows.rb +0 -75
  16. data/lib/chef/provider/erl_call.rb +0 -101
  17. data/lib/chef/provider/git.rb +0 -243
  18. data/lib/chef/provider/group.rb +0 -133
  19. data/lib/chef/provider/group/aix.rb +0 -70
  20. data/lib/chef/provider/group/dscl.rb +0 -121
  21. data/lib/chef/provider/group/gpasswd.rb +0 -53
  22. data/lib/chef/provider/group/groupadd.rb +0 -81
  23. data/lib/chef/provider/group/pw.rb +0 -84
  24. data/lib/chef/provider/group/suse.rb +0 -53
  25. data/lib/chef/provider/group/usermod.rb +0 -57
  26. data/lib/chef/provider/group/windows.rb +0 -79
  27. data/lib/chef/provider/ifconfig.rb +0 -134
  28. data/lib/chef/provider/log.rb +0 -54
  29. data/lib/chef/provider/mdadm.rb +0 -91
  30. data/lib/chef/provider/mount.rb +0 -114
  31. data/lib/chef/provider/mount/mount.rb +0 -240
  32. data/lib/chef/provider/mount/windows.rb +0 -81
  33. data/lib/chef/provider/ohai.rb +0 -42
  34. data/lib/chef/provider/package.rb +0 -163
  35. data/lib/chef/provider/package/apt.rb +0 -135
  36. data/lib/chef/provider/package/dpkg.rb +0 -115
  37. data/lib/chef/provider/package/easy_install.rb +0 -136
  38. data/lib/chef/provider/package/freebsd.rb +0 -125
  39. data/lib/chef/provider/package/macports.rb +0 -105
  40. data/lib/chef/provider/package/pacman.rb +0 -101
  41. data/lib/chef/provider/package/portage.rb +0 -135
  42. data/lib/chef/provider/package/rpm.rb +0 -104
  43. data/lib/chef/provider/package/rubygems.rb +0 -465
  44. data/lib/chef/provider/package/solaris.rb +0 -130
  45. data/lib/chef/provider/package/yum.rb +0 -1128
  46. data/lib/chef/provider/package/zypper.rb +0 -144
  47. data/lib/chef/provider/route.rb +0 -193
  48. data/lib/chef/provider/ruby_block.rb +0 -34
  49. data/lib/chef/provider/script.rb +0 -55
  50. data/lib/chef/provider/service.rb +0 -122
  51. data/lib/chef/provider/service/arch.rb +0 -116
  52. data/lib/chef/provider/service/debian.rb +0 -130
  53. data/lib/chef/provider/service/freebsd.rb +0 -154
  54. data/lib/chef/provider/service/gentoo.rb +0 -53
  55. data/lib/chef/provider/service/init.rb +0 -71
  56. data/lib/chef/provider/service/insserv.rb +0 -52
  57. data/lib/chef/provider/service/redhat.rb +0 -60
  58. data/lib/chef/provider/service/simple.rb +0 -120
  59. data/lib/chef/provider/service/solaris.rb +0 -85
  60. data/lib/chef/provider/service/systemd.rb +0 -102
  61. data/lib/chef/provider/service/upstart.rb +0 -198
  62. data/lib/chef/provider/service/windows.rb +0 -146
  63. data/lib/chef/provider/subversion.rb +0 -197
  64. data/lib/chef/provider/user.rb +0 -186
  65. data/lib/chef/provider/user/dscl.rb +0 -280
  66. data/lib/chef/provider/user/pw.rb +0 -113
  67. data/lib/chef/provider/user/useradd.rb +0 -137
  68. data/lib/chef/provider/user/windows.rb +0 -124
  69. data/lib/chef/resource/apt_package.rb +0 -34
  70. data/lib/chef/resource/bash.rb +0 -33
  71. data/lib/chef/resource/breakpoint.rb +0 -35
  72. data/lib/chef/resource/cron.rb +0 -188
  73. data/lib/chef/resource/csh.rb +0 -33
  74. data/lib/chef/resource/deploy.rb +0 -380
  75. data/lib/chef/resource/deploy_revision.rb +0 -40
  76. data/lib/chef/resource/dpkg_package.rb +0 -34
  77. data/lib/chef/resource/easy_install_package.rb +0 -57
  78. data/lib/chef/resource/erl_call.rb +0 -83
  79. data/lib/chef/resource/freebsd_package.rb +0 -35
  80. data/lib/chef/resource/gem_package.rb +0 -53
  81. data/lib/chef/resource/git.rb +0 -46
  82. data/lib/chef/resource/group.rb +0 -70
  83. data/lib/chef/resource/ifconfig.rb +0 -134
  84. data/lib/chef/resource/log.rb +0 -62
  85. data/lib/chef/resource/macports_package.rb +0 -29
  86. data/lib/chef/resource/mdadm.rb +0 -82
  87. data/lib/chef/resource/mount.rb +0 -134
  88. data/lib/chef/resource/ohai.rb +0 -40
  89. data/lib/chef/resource/package.rb +0 -80
  90. data/lib/chef/resource/pacman_package.rb +0 -33
  91. data/lib/chef/resource/perl.rb +0 -33
  92. data/lib/chef/resource/portage_package.rb +0 -33
  93. data/lib/chef/resource/python.rb +0 -33
  94. data/lib/chef/resource/route.rb +0 -135
  95. data/lib/chef/resource/rpm_package.rb +0 -34
  96. data/lib/chef/resource/ruby.rb +0 -33
  97. data/lib/chef/resource/ruby_block.rb +0 -40
  98. data/lib/chef/resource/scm.rb +0 -147
  99. data/lib/chef/resource/script.rb +0 -60
  100. data/lib/chef/resource/service.rb +0 -160
  101. data/lib/chef/resource/solaris_package.rb +0 -36
  102. data/lib/chef/resource/subversion.rb +0 -36
  103. data/lib/chef/resource/timestamped_deploy.rb +0 -31
  104. data/lib/chef/resource/user.rb +0 -130
  105. data/lib/chef/resource/yum_package.rb +0 -63
@@ -1,62 +0,0 @@
1
- #
2
- # Author:: Cary Penniman (<cary@rightscale.com>)
3
- # Copyright:: Copyright (c) 2008 Opscode, Inc.
4
- # License:: Apache License, Version 2.0
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
- class Chef
19
- class Resource
20
-
21
- # Sends a string from a recipe to a log provider
22
- #
23
- # log "some string to log" do
24
- # level :info # (default) also supports :warn, :debug, and :error
25
- # end
26
- #
27
- # === Example
28
- # log "your string to log"
29
- #
30
- # or
31
- #
32
- # log "a debug string" { level :debug }
33
- #
34
- class Log < Chef::Resource
35
-
36
- # Initialize log resource with a name as the string to log
37
- #
38
- # === Parameters
39
- # name<String>:: Message to log
40
- # collection<Array>:: Collection of included recipes
41
- # node<Chef::Node>:: Node where resource will be used
42
- def initialize(name, run_context=nil)
43
- super
44
- @resource_name = :log
45
- @level = :info
46
- @action = :write
47
- end
48
-
49
- # <Symbol> Log level, one of :debug, :info, :warn, :error or :fatal
50
- def level(arg=nil)
51
- set_or_return(
52
- :level,
53
- arg,
54
- :equal_to => [ :debug, :info, :warn, :error, :fatal ]
55
- )
56
- end
57
-
58
- end
59
- end
60
- end
61
-
62
-
@@ -1,29 +0,0 @@
1
- #
2
- # Author:: David Balatero (<dbalatero@gmail.com>)
3
- # Copyright:: Copyright (c) 2009 Opscode, Inc.
4
- # License:: Apache License, Version 2.0
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- class Chef
20
- class Resource
21
- class MacportsPackage < Chef::Resource::Package
22
- def initialize(name, run_context=nil)
23
- super
24
- @resource_name = :macports_package
25
- @provider = Chef::Provider::Package::Macports
26
- end
27
- end
28
- end
29
- end
@@ -1,82 +0,0 @@
1
- #
2
- # Author:: Joe Williams (<joe@joetify.com>)
3
- # Copyright:: Copyright (c) 2009 Joe Williams
4
- # License:: Apache License, Version 2.0
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- require 'chef/resource'
20
-
21
- class Chef
22
- class Resource
23
- class Mdadm < Chef::Resource
24
-
25
- def initialize(name, run_context=nil)
26
- super
27
- @resource_name = :mdadm
28
-
29
- @chunk = 16
30
- @devices = []
31
- @exists = false
32
- @level = 1
33
- @raid_device = name
34
-
35
- @action = :create
36
- @allowed_actions.push(:create, :assemble, :stop)
37
- end
38
-
39
- def chunk(arg=nil)
40
- set_or_return(
41
- :chunk,
42
- arg,
43
- :kind_of => [ Integer ]
44
- )
45
- end
46
-
47
- def devices(arg=nil)
48
- set_or_return(
49
- :devices,
50
- arg,
51
- :kind_of => [ Array ]
52
- )
53
- end
54
-
55
- def exists(arg=nil)
56
- set_or_return(
57
- :exists,
58
- arg,
59
- :kind_of => [ TrueClass, FalseClass ]
60
- )
61
- end
62
-
63
- def level(arg=nil)
64
- set_or_return(
65
- :level,
66
- arg,
67
- :kind_of => [ Integer ]
68
- )
69
- end
70
-
71
- def raid_device(arg=nil)
72
- set_or_return(
73
- :raid_device,
74
- arg,
75
- :kind_of => [ String ]
76
- )
77
- end
78
-
79
-
80
- end
81
- end
82
- end
@@ -1,134 +0,0 @@
1
- #
2
- # Author:: Joshua Timberman (<joshua@opscode.com>)
3
- # Copyright:: Copyright (c) 2009 Opscode, Inc
4
- # License:: Apache License, Version 2.0
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- require 'chef/resource'
20
-
21
- class Chef
22
- class Resource
23
- class Mount < Chef::Resource
24
-
25
- def initialize(name, run_context=nil)
26
- super
27
- @resource_name = :mount
28
- @mount_point = name
29
- @device = nil
30
- @device_type = :device
31
- @fstype = "auto"
32
- @options = ["defaults"]
33
- @dump = 0
34
- @pass = 2
35
- @mounted = false
36
- @enabled = false
37
- @action = :mount
38
- @supports = { :remount => false }
39
- @allowed_actions.push(:mount, :umount, :remount, :enable, :disable)
40
- end
41
-
42
- def mount_point(arg=nil)
43
- set_or_return(
44
- :mount_point,
45
- arg,
46
- :kind_of => [ String ]
47
- )
48
- end
49
-
50
- def device(arg=nil)
51
- set_or_return(
52
- :device,
53
- arg,
54
- :kind_of => [ String ]
55
- )
56
- end
57
-
58
- def device_type(arg=nil)
59
- real_arg = arg.kind_of?(String) ? arg.to_sym : arg
60
- set_or_return(
61
- :device_type,
62
- real_arg,
63
- :equal_to => [ :device, :label, :uuid ]
64
- )
65
- end
66
-
67
- def fstype(arg=nil)
68
- set_or_return(
69
- :fstype,
70
- arg,
71
- :kind_of => [ String ]
72
- )
73
- end
74
-
75
- def options(arg=nil)
76
- if arg.is_a?(String)
77
- converted_arg = arg.gsub(/,/, ' ').split(/ /)
78
- else
79
- converted_arg = arg
80
- end
81
- set_or_return(
82
- :options,
83
- converted_arg,
84
- :kind_of => [ Array ]
85
- )
86
- end
87
-
88
- def dump(arg=nil)
89
- set_or_return(
90
- :dump,
91
- arg,
92
- :kind_of => [ Integer, FalseClass ]
93
- )
94
- end
95
-
96
- def pass(arg=nil)
97
- set_or_return(
98
- :pass,
99
- arg,
100
- :kind_of => [ Integer, FalseClass ]
101
- )
102
- end
103
-
104
- def mounted(arg=nil)
105
- set_or_return(
106
- :mounted,
107
- arg,
108
- :kind_of => [ TrueClass, FalseClass ]
109
- )
110
- end
111
-
112
- def enabled(arg=nil)
113
- set_or_return(
114
- :enabled,
115
- arg,
116
- :kind_of => [ TrueClass, FalseClass ]
117
- )
118
- end
119
-
120
- def supports(args={})
121
- if args.is_a? Array
122
- args.each { |arg| @supports[arg] = true }
123
- elsif args.any?
124
- @supports = args
125
- else
126
- @supports
127
- end
128
- end
129
-
130
- end
131
- end
132
- end
133
-
134
-
@@ -1,40 +0,0 @@
1
- #
2
- # Author:: Michael Leinartas (<mleinartas@gmail.com>)
3
- # Copyright:: Copyright (c) 2010 Michael Leinartas
4
- # License:: Apache License, Version 2.0
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- class Chef
20
- class Resource
21
- class Ohai < Chef::Resource
22
-
23
- def initialize(name, run_context=nil)
24
- super
25
- @resource_name = :ohai
26
- @allowed_actions.push(:reload)
27
- @action = :reload
28
- @plugin = nil
29
- end
30
-
31
- def plugin(arg=nil)
32
- set_or_return(
33
- :plugin,
34
- arg,
35
- :kind_of => [ String ]
36
- )
37
- end
38
- end
39
- end
40
- end
@@ -1,80 +0,0 @@
1
- #
2
- # Author:: Adam Jacob (<adam@opscode.com>)
3
- # Copyright:: Copyright (c) 2008 Opscode, Inc.
4
- # License:: Apache License, Version 2.0
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- require 'chef/resource'
20
-
21
- class Chef
22
- class Resource
23
- class Package < Chef::Resource
24
-
25
- def initialize(name, run_context=nil)
26
- super
27
- @resource_name = :package
28
- @package_name = name
29
- @version = nil
30
- @candidate_version = nil
31
- @response_file = nil
32
- @source = nil
33
- @action = :install
34
- @options = nil
35
- @allowed_actions.push(:install, :upgrade, :remove, :purge)
36
- end
37
-
38
- def package_name(arg=nil)
39
- set_or_return(
40
- :package_name,
41
- arg,
42
- :kind_of => [ String ]
43
- )
44
- end
45
-
46
- def version(arg=nil)
47
- set_or_return(
48
- :version,
49
- arg,
50
- :kind_of => [ String ]
51
- )
52
- end
53
-
54
- def response_file(arg=nil)
55
- set_or_return(
56
- :response_file,
57
- arg,
58
- :kind_of => [ String ]
59
- )
60
- end
61
-
62
- def source(arg=nil)
63
- set_or_return(
64
- :source,
65
- arg,
66
- :kind_of => [ String ]
67
- )
68
- end
69
-
70
- def options(arg=nil)
71
- set_or_return(
72
- :options,
73
- arg,
74
- :kind_of => [ String ]
75
- )
76
- end
77
-
78
- end
79
- end
80
- end
@@ -1,33 +0,0 @@
1
- #
2
- # Author:: Jan Zimmek (<jan.zimmek@web.de>)
3
- # Copyright:: Copyright (c) 2010 Jan Zimmek
4
- # License:: Apache License, Version 2.0
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- require 'chef/resource/package'
20
-
21
- class Chef
22
- class Resource
23
- class PacmanPackage < Chef::Resource::Package
24
-
25
- def initialize(name, run_context=nil)
26
- super
27
- @resource_name = :pacman_package
28
- @provider = Chef::Provider::Package::Pacman
29
- end
30
-
31
- end
32
- end
33
- end