Commit 4b3720be authored by Andrew Ladlow's avatar Andrew Ladlow
Browse files

common: Fix deprecated 'File.exists?' warning

parent df1daf3e
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.
......
......@@ -123,7 +123,7 @@ module Symbiosis
end
#
# Return a diff of the new configuration comapred with the existing one.
# Return a diff of the new configuration compared 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.exists?(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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment