Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mirror
chef-ulimit
Commits
9bd1dec9
Commit
9bd1dec9
authored
Oct 22, 2013
by
Brian Hatfield
Browse files
Resolves ulimit::domain issue
parent
c5bbe05b
Changes
5
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
9bd1dec9
...
...
@@ -2,6 +2,10 @@
This file is used to list changes made in each version of ulimit.
## 0.3.2
*
Resolves issue some users were having with a resource-loading race condition, thanks to Chris Roberts (https://github.com/chrisroberts)
## 0.3.1
*
Fix domain typo, thanks to David Radcliffe (https://github.com/dwradcliffe) (also reported by Lewis Thompson (https://github.com/lewisthompson))
...
...
metadata.json
View file @
9bd1dec9
...
...
@@ -32,7 +32,7 @@
]
},
"license"
:
"Apache 2.0"
,
"version"
:
"0.3.
1
"
,
"version"
:
"0.3.
2
"
,
"providing"
:
{
},
"recipes"
:
{
...
...
metadata.rb
View file @
9bd1dec9
...
...
@@ -4,4 +4,4 @@ license "Apache 2.0"
description
"Installs/Configures ulimit"
long_description
IO
.
read
(
File
.
join
(
File
.
dirname
(
__FILE__
),
'README.md'
))
name
"ulimit"
version
"0.3.
1
"
version
"0.3.
2
"
resources/domain.rb
View file @
9bd1dec9
...
...
@@ -5,6 +5,17 @@ def initialize(*args)
super
end
def
load_current_resource
# do full type check
valid_types
=
[
Chef
::
Resource
::
UlimitDomain
,
String
]
unless
(
valid_types
.
include?
(
new_resource
.
domain
.
class
))
raise
TypeError
.
new
(
"Expecting `domain` attribute to be of type:
#{
valid_types
.
map
(
&
:to_s
).
join
(
', '
)
}
. "
<<
"Got:
#{
new_resource
.
domain
.
class
}
"
)
end
end
actions
:create
,
:delete
default_action
:create
...
...
resources/rule.rb
View file @
9bd1dec9
...
...
@@ -4,4 +4,4 @@ default_action :create
attribute
:type
,
:kind_of
=>
[
Symbol
,
String
],
:required
=>
true
attribute
:item
,
:kind_of
=>
[
Symbol
,
String
],
:required
=>
true
attribute
:value
,
:kind_of
=>
[
String
,
Numeric
],
:required
=>
true
attribute
:domain
,
:kind_of
=>
[
Chef
::
Resource
::
UlimitDomain
,
String
],
:required
=>
true
attribute
:domain
,
:kind_of
=>
[
Chef
::
Resource
,
String
],
:required
=>
true
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment