def update_variables(dir, vars)
write_variables(load_variables(dir, false).merge(vars), dir)
end
+
+ private
+ def hexdigest(klass, file)
+ fio = file.open
+ dig = klass.new
+ while buf = fio.read(1024*1024) and buf.length > 0
+ dig << buf
+ end
+ fio.close
+ dig.hexdigest
+ end
+
end
class Ping < Base
def api
OSDNClient::ProjectApi.new
end
-
- def hexdigest(klass, file)
- fio = file.open
- dig = klass.new
- while buf = fio.read(1024*1024) and buf.length > 0
- dig << buf
- end
- fio.close
- dig.hexdigest
- end
-
end
end; end; end