Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ian Eiloart
Sympl
Commits
8c95aab6
Commit
8c95aab6
authored
Jul 07, 2017
by
Patrick Cherry
Committed by
GitHub
Jul 07, 2017
Browse files
Merge pull request #70 from skx/minor-documentation-fixes-stretch
Updated comments to reflect implementation.
parents
2f56ec42
297e8a4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/lib/symbiosis/utils.rb
View file @
8c95aab6
...
...
@@ -183,7 +183,7 @@ module Symbiosis
fn
=
File
.
join
(
parent_dir
,
setting
)
#
# Return
false
unless we can read the file
# Return
nil
unless we can read the file
#
return
nil
unless
File
.
exist?
(
fn
)
and
File
.
readable?
(
fn
)
...
...
@@ -198,12 +198,12 @@ module Symbiosis
return
true
if
contents
.
empty?
or
contents
=~
/\A\s*(true|yes)\s*\Z/i
#
# Return false if the
file is
set to "false" or "no"
# Return false if the
contents are
set to "false" or "no"
#
return
false
if
contents
=~
/\A\s*(false|no)\s*\Z/i
#
# Otherwise return the contents
# Otherwise return the contents
, literally.
#
return
contents
end
...
...
@@ -211,7 +211,7 @@ module Symbiosis
#
# This returns the first setting of a parameter in a stack of directories.
#
# Returns the first non-
# Returns the first non-
nil entry, following the same rules as `get_param`.
#
def
get_param_with_dir_stack
(
setting
,
dir_stack
,
opts
=
{})
var
=
nil
...
...
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