Class: Runbook::Entities::Book
- Inherits:
-
Runbook::Entity
- Object
- Node
- Runbook::Entity
- Runbook::Entities::Book
- Includes:
- Runbook::Extensions::SSHConfig
- Defined in:
- lib/runbook/entities/book.rb
Instance Attribute Summary
Attributes inherited from Runbook::Entity
#dsl, #labels, #parent, #tags, #title
Class Method Summary collapse
-
.initial_render_metadata ⇒ Object
Seed data for ‘render’ tree traversal method.
-
.initial_run_metadata ⇒ Object
Seed data for ‘run’ tree traversal method.
Instance Method Summary collapse
-
#initialize(title, tags: [], labels: {}) ⇒ Book
constructor
A new instance of Book.
Methods included from Runbook::Extensions::SSHConfig
Methods inherited from Runbook::Entity
#_render_metadata, #_run_metadata, #_should_retraverse?, #_should_reverse?, #add, #dynamic!, inherited, #items, #method_missing, #render, #respond_to?, #run
Methods included from Hooks::Invoker
#_execute_after_hooks, #_execute_around_hooks, #_execute_before_hooks, #invoke_with_hooks
Methods inherited from Node
#dynamic!, #dynamic?, #visited!, #visited?
Constructor Details
#initialize(title, tags: [], labels: {}) ⇒ Book
Returns a new instance of Book.
3 4 5 |
# File 'lib/runbook/entities/book.rb', line 3 def initialize(title, tags: [], labels: {}) super(title, tags: , labels: labels) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Runbook::Entity
Class Method Details
.initial_render_metadata ⇒ Object
Seed data for ‘render’ tree traversal method
8 9 10 |
# File 'lib/runbook/entities/book.rb', line 8 def self. {depth: 1, index: 0} end |
.initial_run_metadata ⇒ Object
Seed data for ‘run’ tree traversal method
13 14 15 |
# File 'lib/runbook/entities/book.rb', line 13 def self. {depth: 1, index: 0, position: ""} end |