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,33 +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/script'
20
-
21
- class Chef
22
- class Resource
23
- class Perl < Chef::Resource::Script
24
-
25
- def initialize(name, run_context=nil)
26
- super
27
- @resource_name = :perl
28
- @interpreter = "perl"
29
- end
30
-
31
- end
32
- end
33
- end
@@ -1,33 +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/package'
20
-
21
- class Chef
22
- class Resource
23
- class PortagePackage < Chef::Resource::Package
24
-
25
- def initialize(name, run_context=nil)
26
- super
27
- @resource_name = :portage_package
28
- @provider = Chef::Provider::Package::Portage
29
- end
30
-
31
- end
32
- end
33
- end
@@ -1,33 +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/script'
20
-
21
- class Chef
22
- class Resource
23
- class Python < Chef::Resource::Script
24
-
25
- def initialize(name, run_context=nil)
26
- super
27
- @resource_name = :python
28
- @interpreter = "python"
29
- end
30
-
31
- end
32
- end
33
- end
@@ -1,135 +0,0 @@
1
- #
2
- # Author:: Bryan McLellan (btm@loftninjas.org)
3
- # Copyright:: Copyright (c) 2009 Bryan McLellan
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 Route < Chef::Resource
24
-
25
- def initialize(name, run_context=nil)
26
- super
27
- @resource_name = :route
28
- @target = name
29
- @action = :add
30
- @allowed_actions.push(:add, :delete)
31
- @netmask = nil
32
- @gateway = nil
33
- @metric = nil
34
- @device = nil
35
- @route_type = :host
36
- @networking = nil
37
- @networking_ipv6 = nil
38
- @hostname = nil
39
- @domainname = nil
40
- @domain = nil
41
- end
42
-
43
- def networking(arg=nil)
44
- set_or_return(
45
- :networking,
46
- arg,
47
- :kind_of => String
48
- )
49
- end
50
-
51
- def networking_ipv6(arg=nil)
52
- set_or_return(
53
- :networking_ipv6,
54
- arg,
55
- :kind_of => String
56
- )
57
- end
58
-
59
- def hostname(arg=nil)
60
- set_or_return(
61
- :hostname,
62
- arg,
63
- :kind_of => String
64
- )
65
- end
66
-
67
- def domainname(arg=nil)
68
- set_or_return(
69
- :domainname,
70
- arg,
71
- :kind_of => String
72
- )
73
- end
74
-
75
- def domain(arg=nil)
76
- set_or_return(
77
- :domain,
78
- arg,
79
- :kind_of => String
80
- )
81
- end
82
-
83
- def target(arg=nil)
84
- set_or_return(
85
- :target,
86
- arg,
87
- :kind_of => String
88
- )
89
- end
90
-
91
- def netmask(arg=nil)
92
- set_or_return(
93
- :netmask,
94
- arg,
95
- :kind_of => String
96
- )
97
- end
98
-
99
- def gateway(arg=nil)
100
- set_or_return(
101
- :gateway,
102
- arg,
103
- :kind_of => String
104
- )
105
- end
106
-
107
- def metric(arg=nil)
108
- set_or_return(
109
- :metric,
110
- arg,
111
- :kind_of => Integer
112
- )
113
- end
114
-
115
- def device(arg=nil)
116
- set_or_return(
117
- :device,
118
- arg,
119
- :kind_of => String
120
- )
121
- end
122
-
123
- def route_type(arg=nil)
124
- real_arg = arg.kind_of?(String) ? arg.to_sym : arg
125
- set_or_return(
126
- :route_type,
127
- real_arg,
128
- :equal_to => [ :host, :net ]
129
- )
130
- end
131
- end
132
- end
133
- end
134
-
135
-
@@ -1,34 +0,0 @@
1
- #
2
- # Author:: Thomas Bishop (<bishop.thomas@gmail.com>)
3
- # Copyright:: Copyright (c) 2010 Thomas Bishop
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
- require 'chef/provider/package/rpm'
21
-
22
- class Chef
23
- class Resource
24
- class RpmPackage < Chef::Resource::Package
25
-
26
- def initialize(name, run_context=nil)
27
- super
28
- @resource_name = :rpm_package
29
- @provider = Chef::Provider::Package::Rpm
30
- end
31
-
32
- end
33
- end
34
- end
@@ -1,33 +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/script'
20
-
21
- class Chef
22
- class Resource
23
- class Ruby < Chef::Resource::Script
24
-
25
- def initialize(name, run_context=nil)
26
- super
27
- @resource_name = :ruby
28
- @interpreter = "ruby"
29
- end
30
-
31
- end
32
- end
33
- end
@@ -1,40 +0,0 @@
1
- #
2
- # Author:: Adam Jacob (<adam@opscode.com>)
3
- # Author:: AJ Christensen (<aj@opscode.com>)
4
- # Copyright:: Copyright (c) 2008 Opscode, Inc.
5
- # License:: Apache License, Version 2.0
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- class Chef
21
- class Resource
22
- class RubyBlock < Chef::Resource
23
-
24
- def initialize(name, run_context=nil)
25
- super
26
- @resource_name = :ruby_block
27
- @action = "create"
28
- @allowed_actions.push(:create)
29
- end
30
-
31
- def block(&block)
32
- if block_given? and block
33
- @block = block
34
- else
35
- @block
36
- end
37
- end
38
- end
39
- end
40
- end
@@ -1,147 +0,0 @@
1
- #
2
- # Author:: Daniel DeLeo (<dan@kallistec.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
-
20
- require 'chef/resource'
21
-
22
- class Chef
23
- class Resource
24
- class Scm < Chef::Resource
25
-
26
- def initialize(name, run_context=nil)
27
- super
28
- @destination = name
29
- @resource_name = :scm
30
- @enable_submodules = false
31
- @revision = "HEAD"
32
- @remote = "origin"
33
- @ssh_wrapper = nil
34
- @depth = nil
35
- @allowed_actions.push(:checkout, :export, :sync, :diff, :log)
36
- @action = [:sync]
37
- end
38
-
39
- def destination(arg=nil)
40
- set_or_return(
41
- :destination,
42
- arg,
43
- :kind_of => String
44
- )
45
- end
46
-
47
- def repository(arg=nil)
48
- set_or_return(
49
- :repository,
50
- arg,
51
- :kind_of => String
52
- )
53
- end
54
-
55
- def revision(arg=nil)
56
- set_or_return(
57
- :revision,
58
- arg,
59
- :kind_of => String
60
- )
61
- end
62
-
63
- def user(arg=nil)
64
- set_or_return(
65
- :user,
66
- arg,
67
- :kind_of => [String, Integer]
68
- )
69
- end
70
-
71
- def group(arg=nil)
72
- set_or_return(
73
- :group,
74
- arg,
75
- :kind_of => [String, Integer]
76
- )
77
- end
78
-
79
- def svn_username(arg=nil)
80
- set_or_return(
81
- :svn_username,
82
- arg,
83
- :kind_of => String
84
- )
85
- end
86
-
87
- def svn_password(arg=nil)
88
- set_or_return(
89
- :svn_password,
90
- arg,
91
- :kind_of => String
92
- )
93
- end
94
-
95
- def svn_arguments(arg=nil)
96
- @svn_arguments, arg = nil, nil if arg == false
97
- set_or_return(
98
- :svn_arguments,
99
- arg,
100
- :kind_of => String
101
- )
102
- end
103
-
104
- def svn_info_args(arg=nil)
105
- @svn_info_args, arg = nil, nil if arg == false
106
- set_or_return(
107
- :svn_info_args,
108
- arg,
109
- :kind_of => String)
110
- end
111
-
112
- # Capistrano and git-deploy use ``shallow clone''
113
- def depth(arg=nil)
114
- set_or_return(
115
- :depth,
116
- arg,
117
- :kind_of => Integer
118
- )
119
- end
120
-
121
- def enable_submodules(arg=nil)
122
- set_or_return(
123
- :enable_submodules,
124
- arg,
125
- :kind_of => [TrueClass, FalseClass]
126
- )
127
- end
128
-
129
- def remote(arg=nil)
130
- set_or_return(
131
- :remote,
132
- arg,
133
- :kind_of => String
134
- )
135
- end
136
-
137
- def ssh_wrapper(arg=nil)
138
- set_or_return(
139
- :ssh_wrapper,
140
- arg,
141
- :kind_of => String
142
- )
143
- end
144
-
145
- end
146
- end
147
- end