Sha256: 2fdf02792900e53567b89b1e1a680dbbf39ddb94606008bd7aa0d9e688885aba

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

require 'sym/app/commands/base_command'
module Sym
  module App
    module Commands
      class Encrypt < BaseCommand
        include Sym

        required_options [ :private_key, :keyfile, :keychain, :interactive ],
                         [ :encrypt ],
                         [ :file, :string ]

        try_after :generate_key

        def execute
          send(application.action, content, application.key)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sym-2.3.0 lib/sym/app/commands/encrypt.rb