lib/travis/tools/completion.rb in travis-1.13.0 vs lib/travis/tools/completion.rb in travis-1.13.1
- old
+ new
@@ -32,11 +32,11 @@
File.open(file, 'a') { |f| f.puts('', '# added by travis gem', "[ ! -s #{cmp_file} ] || #{source}") }
end
end
def update_completion
- mkdir_p(config_path)
- cp(Assets['travis.sh'], cmp_file)
+ FileUtils.mkdir_p(config_path)
+ FileUtils.cp(Assets['travis.sh'], cmp_file)
end
def completion_installed?
source = 'source ' << config_path
RCS.each do |file|