Module: ObscureYaml
- Defined in:
- lib/obscure_yaml.rb,
lib/obscure_yaml/cli.rb,
lib/obscure_yaml/version.rb
Defined Under Namespace
Modules: Cli
Constant Summary collapse
- DEFAULT_DATA_KEY =
'data'- MAGIC_DELIMITER =
'@'- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.decode(file_path, output = $stdout) ⇒ Object
9 10 11 |
# File 'lib/obscure_yaml.rb', line 9 def decode(file_path, output=$stdout) output << construct_yaml(file_path, :output) end |
.encode(output_path, file_path) ⇒ Object
13 14 15 16 17 |
# File 'lib/obscure_yaml.rb', line 13 def encode(output_path, file_path) File.open(output_path, 'w+') do |f| f.write(construct_yaml(file_path, :input)) end end |