Method: NanDoc::Cli::CommandMethods#command_path_assert
- Defined in:
- lib/nandoc/cli/command-methods.rb
#command_path_assert(name, *paths) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/nandoc/cli/command-methods.rb', line 13 def command_path_assert name, *paths paths.each do |p| unless File.exist?(p) command_abort("#{name} does not exist: #{p}") end end end |