Module: AeEasy::Core::Plugin::SeederBehavior

Includes:
ContextIntegrator
Included in:
Seeder
Defined in:
lib/ae_easy/core/plugin/seeder_behavior.rb

Instance Attribute Summary

Attributes included from ContextIntegrator

#context

Instance Method Summary collapse

Methods included from ContextIntegrator

#initialize_hook_core_context_integrator, #mock_context

Instance Method Details

#enqueue(pages) ⇒ Object



8
9
10
11
# File 'lib/ae_easy/core/plugin/seeder_behavior.rb', line 8

def enqueue pages
  pages = [pages] unless pages.is_a? Array
  save_pages pages
end

#save(outputs) ⇒ Object



14
15
16
17
# File 'lib/ae_easy/core/plugin/seeder_behavior.rb', line 14

def save outputs
  outputs = [outputs] unless outputs.is_a? Array
  save_outputs outputs
end