module Lono::Utils::Generators::Tree

Private Instance Methods

tree_structure(name) click to toggle source
# File lib/lono/utils/generators/tree.rb, line 4
    def tree_structure(name)
      return if options[:from_new] || options[:import] # only for lono new

      tree_installed = system("type tree > /dev/null 2>&1")
      return unless tree_installed

      structure = `tree .`
      puts <<~EOL
        Here is the structure of your #{name}:

        #{structure}
      EOL
    end