Class: Travis::Encrypt::Encryptor
- Defined in:
- lib/travis/encrypt/encryptor.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#add_iv, #create_aes, #create_iv, #decode, #encode, #extract_iv, #initialize
Constructor Details
This class inherits a constructor from Travis::Encrypt::Base
Instance Method Details
#apply ⇒ Object
10 11 12 |
# File 'lib/travis/encrypt/encryptor.rb', line 10 def apply apply? ? encrypt : string end |
#apply? ⇒ Boolean
6 7 8 |
# File 'lib/travis/encrypt/encryptor.rb', line 6 def apply? !!string && !string.empty? && ![:disable] # TODO ask piotr end |