lib/sym/app/commands/show_examples.rb in sym-3.0.0 vs lib/sym/app/commands/show_examples.rb in sym-3.0.1

- old
+ new

@@ -14,16 +14,16 @@ command: 'export mykey=$(sym -g)', echo: 'echo $mykey', result: '75ngenJpB6zL47/8Wo7Ne6JN1pnOsqNEcIqblItpfg4='.green) output << example(comment: 'generate a new key with a cached password & save to the default key file', - command: 'sym -gcpqo ' + Sym.default_key_file, - echo: 'New Password : ' + '••••••••••'.green, - result: 'Confirm Password : ' + '••••••••••'.green) + command: "sym -gcpqo #{Sym.default_key_file}", + echo: "New Password : #{'••••••••••'.green}", + result: "Confirm Password : #{'••••••••••'.green}") output << example(comment: 'encrypt a plain text string with default key file, and immediately decrypt it', - command: 'sym -es ' + '"secret string"'.bold.yellow + ' | sym -d', + command: "sym -es #{'"secret string"'.bold.yellow} | sym -d", result: 'secret string'.green) output << example(comment: 'encrypt secrets file using key in the environment, and --negate option:', command: 'export PRIVATE_KEY="75ngenJpB6zL47/8Wo7Ne6JN1pnOsqNEcIqblItpfg4="', echo: 'sym -ck PRIVATE_KEY -n secrets.yml', @@ -33,10 +33,10 @@ command: 'sym -gqx keychain.key', echo: 'sym -ck keychain.key -n secrets.yml', result: 'secret string'.green) output << example(comment: 'encrypt/decrypt sym.yml using the default key file', - command: 'sym -gcq > ' + Sym.default_key_file, + command: "sym -gcq > #{Sym.default_key_file}", echo: 'sym -n secrets.yml', result: 'sym -df secrets.yml.enc', ) output << example(comment: 'decrypt an encrypted file and print it to STDOUT:',