!! Deprecation notice !! This code has not been maintained while I've migrated to VSCode years ago. This repo is now archived. I'm open to someone else taking over this project.
Package to use hiera-eyaml encryption/decryption in Sublime Text.
Manual: Clone this repository in your Sublime Text Packages directory (Preferences -> Browse Packages...
). Example on macOS:
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages
git clone https://github.com/duboisph/sublime-hiera-eyaml.git hiera-eyaml
Note: You need the hiera-eyaml gem installed and pre-configured (generated keys, KMS, ...) for this package to work.
You can encrypt or decrypt selected text via the Menu or using the Ctrl+Shift+E and Ctrl+Shift+D keyboard shortcuts.
If Sublime Text can't find the eyaml
binary in it's PATH on macOS, you can set the correct path via the Settings. For example:
{
"hiera_eyaml_bin": "/Users/duboisph/.rbenv/shims/eyaml"
}
Another option is to install the "Fix Mac Path" package.