andela-aoduola/zola

View on GitHub
bin/decrypt

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby

require "bundler/setup"
require "zola"

# quit unless our script gets two command line arguments
unless ARGV.length == 2
  puts "Dude, not the right number of arguments."
  puts "Usage: encrypt message.txt encrypted.txt"
  exit
end
input = ARGV[0]
output = ARGV[1]

Zola::Decryptor.new(input, output).execute