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
4b3720be
Commit
4b3720be
authored
Jun 16, 2018
by
Andrew Ladlow
Browse files
common: Fix deprecated 'File.exists?' warning
parent
df1daf3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
common/debian/changelog
View file @
4b3720be
symbiosis-common (2018:0616) stable; urgency=medium
* Rename deprecated 'File.exists?' call to 'File.exist?' in 'config_file.rb'.
-- Andrew Ladlow <andrew.ladlow@bytemark.co.uk> Sat, 16 Jun 2018 23:44:10 +0100
symbiosis-common (2017:0901) stable; urgency=medium
* Update postinstall hostname check to ensure HOSTNAME is qualfied.
...
...
common/lib/symbiosis/config_file.rb
View file @
4b3720be
...
...
@@ -123,7 +123,7 @@ module Symbiosis
end
#
# Return a diff of the new configuration com
a
pred with the existing one.
# Return a diff of the new configuration comp
a
red with the existing one.
# The format option can take on of Diff::Diff.to_s() format options,
# currently :text, :color, :html, and :html_simple. Defaults to :html. A
# different configuraion template can be specified in the second option.
...
...
@@ -135,7 +135,7 @@ module Symbiosis
tempfile
.
puts
(
config
)
tempfile
.
flush
fn
=
(
File
.
exist
s
?
(
self
.
filename
)
?
self
.
filename
:
'/dev/null'
)
fn
=
(
File
.
exist?
(
self
.
filename
)
?
self
.
filename
:
'/dev/null'
)
Diffy
::
Diff
.
new
(
fn
,
tempfile
.
path
,
source:
'files'
,
include_diff_info:
true
).
to_s
(
format
)
end
...
...
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