Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CHEF
cookbooks
foswiki
Commits
548f3081
Commit
548f3081
authored
Jun 11, 2021
by
André Kerkhoff
Browse files
Make minor changes for cookstyle
parent
c7e09fc0
Changes
4
Hide whitespace changes
Inline
Side-by-side
libraries/config.rb
View file @
548f3081
...
...
@@ -68,7 +68,7 @@ module Foswiki
end
def
foswiki_resolve
(
value
,
tools_dir
=
nil
)
return
nil
if
value
.
nil?
return
if
value
.
nil?
while
value
=~
/\$Foswiki::cfg{/
value
=
value
.
gsub
(
/\$Foswiki::cfg({[A-Za-z}{]+})/
)
do
|
_
|
foswiki_get
(
Regexp
.
last_match
[
1
],
tools_dir
)
...
...
libraries/helper.rb
View file @
548f3081
...
...
@@ -12,7 +12,7 @@ module Foswiki
else
node_obj
[
'foswiki'
][
'config'
][
"
#{
name
.
capitalize
}
Dir"
]
end
return
nil
if
dir
.
nil?
return
if
dir
.
nil?
dir
=
dir
.
dup
while
dir
=~
/\$Foswiki::cfg{/
dir
.
gsub!
(
/\$Foswiki::cfg{([\w}{]+)}/
)
do
|
_
|
...
...
recipes/_cache.rb
View file @
548f3081
...
...
@@ -7,7 +7,7 @@
# All rights reserved - Do Not Redistribute
#
Chef
::
Recipe
.
include
Foswiki
::
Helper
Chef
::
DSL
::
Recipe
.
include
Foswiki
::
Helper
username
=
'foswiki'
password
=
''
...
...
recipes/default.rb
View file @
548f3081
...
...
@@ -7,7 +7,7 @@
# All rights reserved - Do Not Redistribute
#
Chef
::
Recipe
.
include
Foswiki
::
Dependencies
Chef
::
DSL
::
Recipe
.
include
Foswiki
::
Dependencies
# Install needed packages
if
platform_family?
'debian'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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