mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 08:11:56 +02:00
cocaine gem renamed to terrapin
This commit is contained in:
parent
81d8c09c18
commit
c6140531ee
4 changed files with 7 additions and 10 deletions
|
@ -34,7 +34,7 @@ class Archive < Sequel::Model
|
|||
rbox.disconnect
|
||||
end
|
||||
else
|
||||
line = Cocaine::CommandLine.new('ipfs', 'pin rm :ipfs_hash')
|
||||
line = Terrapin::CommandLine.new('ipfs', 'pin rm :ipfs_hash')
|
||||
response = line.run ipfs_hash: ipfs_hash
|
||||
output_array = response.to_s.split("\n")
|
||||
end
|
||||
|
|
|
@ -667,7 +667,7 @@ class Site < Sequel::Model
|
|||
return true if ENV['TRAVIS'] == 'true'
|
||||
|
||||
File.chmod 0666, uploaded_file[:tempfile].path
|
||||
line = Cocaine::CommandLine.new(
|
||||
line = Terrapin::CommandLine.new(
|
||||
"clamdscan", "-i --remove=no --no-summary --stdout :path",
|
||||
expected_outcodes: [0, 1]
|
||||
)
|
||||
|
@ -724,11 +724,11 @@ class Site < Sequel::Model
|
|||
rbox.disconnect
|
||||
end
|
||||
else
|
||||
line = Cocaine::CommandLine.new('ipfs', 'add -r -Q :path')
|
||||
line = Terrapin::CommandLine.new('ipfs', 'add -r -Q :path')
|
||||
response = line.run path: files_path
|
||||
end
|
||||
|
||||
response.first
|
||||
response.strip
|
||||
end
|
||||
|
||||
def purge_old_archives
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue