Sha256: b5df9b52edb751c137cc3f2edf2b79263b1d475164cd0d7cde8344ac4c9f9153
Contents?: true
Size: 1.11 KB
Versions: 8
Compression:
Stored size: 1.11 KB
Contents
module AeEasy module Core module Plugin module Seeder attr_reader :root_input_dir, :referer, :cookie include AeEasy::Core::Plugin::InitializeHook include AeEasy::Core::Plugin::SeederBehavior # Hook to initialize seeder object. # # @param [Hash] opts ({}) Configuration options. # @option opts [String] :root_input_dir (nil) Root directory for inputs. # @option opts [String] :referer (nil) New pages referer, useful to dynamic setups. # @option opts [String] :cookie (nil) Cookie to use on seeded pages fetchs. def initialize_hook_core_seeder opts = {} @root_input_dir = opts[:root_input_dir] @referer = opts[:referer] @cookie = opts[:cookie] end # Initialize seeder and hooks. # # @param [Hash] opts ({}) Configuration options. # # @see AeEasy::Core::Plugin::ContextIntegrator#initialize_hook_core_context_integrator # @see #initialize_hook_core_seeder def initialize opts = {} initialize_hooks opts end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems