Method: VMC::Cli::Command::Base#manifest_file
- Defined in:
- lib/cli/commands/base.rb
#manifest_file ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/cli/commands/base.rb', line 31 def manifest_file return @options[:manifest] if @options[:manifest] return @manifest_file if @manifest_file where = File.(@path) while true if File.exists?(File.join(where, MANIFEST)) @manifest_file = File.join(where, MANIFEST) break elsif File.basename(where) == "/" @manifest_file = nil break else where = File.("../", where) end end @manifest_file end |