Sha256: 0f047fdbfe63016ac56632a6af45bedd999a2456671d3e5db19ac84d55c47b5c

Contents?: true

Size: 433 Bytes

Versions: 3

Compression:

Stored size: 433 Bytes

Contents

module Runbook
  class Statement < Node
    include Runbook::Hooks::Invoker

    def render(view, output, metadata)
      invoke_with_hooks(view, self, output, metadata) do
        view.render(self, output, metadata)
      end
    end

    def run(run, metadata)
      return if dynamic? && visited?

      invoke_with_hooks(run, self, metadata) do
        run.execute(self, metadata)
      end
      self.visited!
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
careacademy-runbook-1.2.0 lib/runbook/statement.rb
runbook-1.1.0 lib/runbook/statement.rb
runbook-1.0.0 lib/runbook/statement.rb