Class: Travis::Encrypt::Encryptor

Inherits:
Base
  • Object
show all
Defined in:
lib/travis/encrypt/encryptor.rb

Instance Attribute Summary

Attributes inherited from Base

#key, #options, #string

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

#applyObject



10
11
12
# File 'lib/travis/encrypt/encryptor.rb', line 10

def apply
  apply? ? encrypt : string
end

#apply?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/travis/encrypt/encryptor.rb', line 6

def apply?
  !!string && !string.empty? && !options[:disable] # TODO ask piotr
end