Class: Runbook::Entities::Book

Inherits:
Runbook::Entity show all
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

Instance Method Summary collapse

Methods included from Runbook::Extensions::SSHConfig

blank_ssh_config, #ssh_config

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: 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_metadataObject

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_metadataObject

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