Sha256: 25b2b3fe1b5576a0efebaa2fe6bdeb4d3ee0aa21fe9bb3848d8b1c1c0a60095e
Contents?: true
Size: 519 Bytes
Versions: 1
Compression:
Stored size: 519 Bytes
Contents
require 'debugger' require 'thor' module InlineEncryption class CLI < Thor def initialize(args=[], opts=[], config={}) super(args, opts, config) end desc 'encrypt [DATA]', 'encrypt stuff' class_option :require, :aliases => ['-r'], :type => :string def encrypt(data) load_environment(options[:require]) if options[:require] puts InlineEncryption.encrypt(data) end protected def load_environment(file) require File.expand_path(file) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inline_encryption-1.0.0 | lib/inline_encryption/cli.rb |