module Runbook::Extensions::SharedVariables::RunHooks
Public Class Methods
_copy_ivars_to_repo(object, metadata)
click to toggle source
# File lib/runbook/extensions/shared_variables.rb, line 27 def self._copy_ivars_to_repo(object, metadata) target = _target(object) ivars = target.instance_variables - Runbook::DSL.dsl_ivars ivars.each do |ivar| repo_key = ivar.to_s[1..-1].to_sym val = target.instance_variable_get(ivar) metadata[:repo][repo_key] = val end end
_eqls_method(key)
click to toggle source
# File lib/runbook/extensions/shared_variables.rb, line 42 def self._eqls_method(key) "#{key}=".to_sym end
_target(object)
click to toggle source
# File lib/runbook/extensions/shared_variables.rb, line 38 def self._target(object) object.parent.dsl end