Class: VivlioStarter::CLI::Guards::ContentsDirCheck
- Defined in:
- lib/vivlio_starter/cli/guards/contents_dir_check.rb
Overview
原稿ディレクトリ contents/ が存在するかを検証する。
Instance Method Summary collapse
Instance Method Details
#validate ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/vivlio_starter/cli/guards/contents_dir_check.rb', line 8 def validate return [] if Dir.exist?(Common::CONTENTS_DIR) [error( "原稿ディレクトリが見つかりません: #{Common::CONTENTS_DIR}/", detail: '対処: プロジェクト直下で実行しているか確認してください' )] end |