lib/cli/mastermind/configuration.rb
# Walks up the file tree looking for masterplans.
#
# @return [Void]
Walks up the file tree looking for masterplans.
Walks up the file tree looking for masterplans .
def lookup_and_load_masterplans
        load_masterplan File.join(Dir.pwd, PLANFILE)
        unless [project_root, Dir.home, '/'].include? Dir.pwd
          Dir.chdir('..') { lookup_and_load_masterplans }
        end
      end
def lookup_and_load_masterplans load_masterplan File . join ( Dir . pwd , PLANFILE ) unless [ project_root , Dir . home , '/' ] . include? Dir . pwd Dir . chdir ( '..' ) { lookup_and_load_masterplans } end end
Walks up the file tree looking for masterplans.
Walks up the file tree looking for masterplans .
# Walk up the tree until we reach the project root, the home directory, or # the root directory
None
Void