Sha256: 43e98e28b8f21b50fdb5910ea3e5af447a116503c2dfeb7c8cbd72ee5b4979de

Contents?: true

Size: 460 Bytes

Versions: 6

Compression:

Stored size: 460 Bytes

Contents

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

    attr_accessor :parent

    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

6 entries across 6 versions & 1 rubygems

Version Path
runbook-0.16.1 lib/runbook/statement.rb
runbook-0.16.0 lib/runbook/statement.rb
runbook-0.15.0 lib/runbook/statement.rb
runbook-0.14.0 lib/runbook/statement.rb
runbook-0.13.0 lib/runbook/statement.rb
runbook-0.12.1 lib/runbook/statement.rb