Method: EYAML::CLI#encrypt
- Defined in:
- lib/eyaml/cli.rb
#encrypt(*files) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/eyaml/cli.rb', line 6 def encrypt(*files) files.each do |file| file_path = Pathname.new(file) next unless file_path.exist? bytes_written = EYAML.encrypt_file_in_place(file_path) puts "Wrote #{bytes_written} bytes to #{file_path}." end end |