Module: DhEasy::Core::Plugin::Seeder
- Includes:
- InitializeHook, SeederBehavior
- Defined in:
- lib/dh_easy/core/plugin/seeder.rb
Instance Attribute Summary collapse
-
#cookie ⇒ String
Cookie to use on page seeing.
-
#referer ⇒ String
Referer to use on page seeding.
-
#root_input_dir ⇒ String
Root input directory path.
Attributes included from ContextIntegrator
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Object
Initialize seeder and hooks.
-
#initialize_hook_core_seeder(opts = {}) ⇒ Object
Hook to initialize seeder object.
Methods included from ExecutorBehavior
Methods included from ContextIntegrator
#initialize_hook_core_context_integrator, #mock_context
Methods included from InitializeHook
Instance Attribute Details
#cookie ⇒ String
Cookie to use on page seeing.
18 19 20 |
# File 'lib/dh_easy/core/plugin/seeder.rb', line 18 def @cookie end |
#referer ⇒ String
Referer to use on page seeding.
14 15 16 |
# File 'lib/dh_easy/core/plugin/seeder.rb', line 14 def referer @referer end |
#root_input_dir ⇒ String
Root input directory path.
10 11 12 |
# File 'lib/dh_easy/core/plugin/seeder.rb', line 10 def root_input_dir @root_input_dir end |
Instance Method Details
#initialize(opts = {}) ⇒ Object
Initialize seeder and hooks.
38 39 40 |
# File 'lib/dh_easy/core/plugin/seeder.rb', line 38 def initialize opts = {} initialize_hooks opts end |
#initialize_hook_core_seeder(opts = {}) ⇒ Object
Hook to initialize seeder object.
26 27 28 29 30 |
# File 'lib/dh_easy/core/plugin/seeder.rb', line 26 def initialize_hook_core_seeder opts = {} @root_input_dir = opts[:root_input_dir] @referer = opts[:referer] @cookie = opts[:cookie] end |