Sha256: 5296e1b7187c94b16cbc79a5d79a846e4a07f48f29a4c8722fd3a72cbd592d49

Contents?: true

Size: 537 Bytes

Versions: 3

Compression:

Stored size: 537 Bytes

Contents

require 'taketo/config_traverser'
require 'taketo/config_printer_visitor'
require 'taketo/actions/base_action'
require 'taketo/node_resolver'

module Taketo
  module Actions

    class View < BaseAction
      def run
        config.default_destination = nil
        node = NodeResolver.new(config, destination_path).resolve
        traverser = ConfigTraverser.new(node)
        config_printer = ConfigPrinterVisitor.new
        traverser.visit_depth_first(config_printer)
        puts config_printer.result
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
taketo-0.3.1 lib/taketo/actions/view.rb
taketo-0.3.0 lib/taketo/actions/view.rb
taketo-0.2.0 lib/taketo/actions/view.rb