Class: PrelandsRails::UpdateSimpleSource::Compile

Inherits:
Object
  • Object
show all
Includes:
Interactor, Interactor::Contracts, AbstractInteractor
Defined in:
lib/prelands_rails/update_simple_source/compile.rb

Instance Method Summary collapse

Methods included from AbstractInteractor

#call

Instance Method Details

#actObject



24
25
26
27
28
29
30
31
32
33
# File 'lib/prelands_rails/update_simple_source/compile.rb', line 24

def act
  if context.files_content
    result = ::PrelandsRails::CreateSimpleSource::Compile.call context
    if result.success?
      context.compiled_htmls = result.compiled_htmls
    else
      fail!(errors: result.errors)
    end
  end
end