ipfsbin.rb: initial commit

Resolves: #3
This commit is contained in:
Mikaela Suomalainen 2020-06-23 14:39:42 +03:00
parent f2bcb782e6
commit fb4f6f28ec
No known key found for this signature in database
GPG Key ID: 440D764E4F4A6C2D

10
ruby/ipfsbin.rb Normal file
View File

@ -0,0 +1,10 @@
#!/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