scripts/ruby/ipfsbin.rb
Mikaela Suomalainen fb4f6f28ec
ipfsbin.rb: initial commit
Resolves: #3
2020-06-23 14:39:42 +03:00

11 lines
221 B
Ruby

#!/usr/bin/env ruby
# Prompt for the whatever
print "Enter the IPFS hash/addr: "
# Get the input without \n
ipfsthing = gets.chomp
ipfsgateway = "https://ipfs.io/ipfs/"
# Output the address
puts ipfsgateway + ipfsthing