class InlineEncryption::CLI
Public Class Methods
new(args=[], opts=[], config={})
click to toggle source
Calls superclass method
# File lib/inline_encryption/cli.rb, line 7 def initialize(args=[], opts=[], config={}) super(args, opts, config) end
Public Instance Methods
encrypt(data)
click to toggle source
# File lib/inline_encryption/cli.rb, line 14 def encrypt(data) load_environment(options[:require]) if options[:require] puts InlineEncryption.encrypt(data) end
Protected Instance Methods
load_environment(file)
click to toggle source
# File lib/inline_encryption/cli.rb, line 25 def load_environment(file) require File.expand_path(file) end