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
297e8a4a
Commit
297e8a4a
authored
Jul 06, 2017
by
Steve Kemp
Browse files
Updated comments to reflect implementation.
No functional changes made, just minor updates to the comments.
parent
2f56ec42
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/lib/symbiosis/utils.rb
View file @
297e8a4a
...
...
@@ -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