16470: File updates & additions from 'rake rails:update'
[arvados.git] / services / api / bin / update
index a8e4462f20340b73db6df04da3a3fa0dd842713f..201287ef61e8859930cb93cc03cb81f20c12b4ff 100755 (executable)
@@ -1,10 +1,14 @@
 #!/usr/bin/env ruby
-require 'pathname'
+
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'fileutils'
 include FileUtils
 
 # path to your application root.
-APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
+APP_ROOT = File.expand_path('..', __dir__)
 
 def system!(*args)
   system(*args) || abort("\n== Command #{args} failed ==")