Module: Pageflow::MediaEncodingStateMachine Private
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/state_machines/pageflow/media_encoding_state_machine.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #failed? ⇒ Boolean private
- #ready? ⇒ Boolean private
- #retry! ⇒ Object private
-
#retryable? ⇒ Boolean
private
UploadableFile-overrides.
Instance Method Details
#failed? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
106 107 108 109 110 |
# File 'app/state_machines/pageflow/media_encoding_state_machine.rb', line 106 def failed? super || || encoding_failed? end |
#ready? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
102 103 104 |
# File 'app/state_machines/pageflow/media_encoding_state_machine.rb', line 102 def ready? encoded? end |
#retry! ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
112 113 114 |
# File 'app/state_machines/pageflow/media_encoding_state_machine.rb', line 112 def retry! retry_encoding! end |
#retryable? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
UploadableFile-overrides
90 91 92 93 94 95 96 97 98 99 100 |
# File 'app/state_machines/pageflow/media_encoding_state_machine.rb', line 90 def retryable? # Calling `can_retry_encoding?` invokes # `Pageflow.config.confirm_encoding_jobs` which might depend on # accessing `file.entry.account`. If the file has been reused in # a different entry and the original entry has been deleted, we # default to making the file not retryable to prevent # exceptions. entry && can_retry_encoding? && !encoded? end |