Class: VivlioStarter::CLI::CleanCommands::CleanSummary
- Inherits:
-
Data
- Object
- Data
- VivlioStarter::CLI::CleanCommands::CleanSummary
- Defined in:
- lib/vivlio_starter/cli/clean.rb
Overview
削除結果の内訳。表示は呼び出し側の責務とし、ドメイン層は件数を返すだけにする。
vs build の Step 0 も execute_clean を呼ぶため、ここで結果報告を出すと
ビルドのたびに「削除しました」が混ざってしまう。
Instance Attribute Summary collapse
-
#artifacts ⇒ Object
readonly
Returns the value of attribute artifacts.
-
#cache ⇒ Object
readonly
Returns the value of attribute cache.
-
#cover ⇒ Object
readonly
Returns the value of attribute cover.
-
#dictionaries ⇒ Object
readonly
Returns the value of attribute dictionaries.
-
#generated_images ⇒ Object
readonly
Returns the value of attribute generated_images.
Instance Method Summary collapse
Instance Attribute Details
#artifacts ⇒ Object (readonly)
Returns the value of attribute artifacts
122 123 124 |
# File 'lib/vivlio_starter/cli/clean.rb', line 122 def artifacts @artifacts end |
#cache ⇒ Object (readonly)
Returns the value of attribute cache
122 123 124 |
# File 'lib/vivlio_starter/cli/clean.rb', line 122 def cache @cache end |
#cover ⇒ Object (readonly)
Returns the value of attribute cover
122 123 124 |
# File 'lib/vivlio_starter/cli/clean.rb', line 122 def cover @cover end |
#dictionaries ⇒ Object (readonly)
Returns the value of attribute dictionaries
122 123 124 |
# File 'lib/vivlio_starter/cli/clean.rb', line 122 def dictionaries @dictionaries end |
#generated_images ⇒ Object (readonly)
Returns the value of attribute generated_images
122 123 124 |
# File 'lib/vivlio_starter/cli/clean.rb', line 122 def generated_images @generated_images end |
Instance Method Details
#none? ⇒ Boolean
124 |
# File 'lib/vivlio_starter/cli/clean.rb', line 124 def none? = total.zero? |
#total ⇒ Object
123 |
# File 'lib/vivlio_starter/cli/clean.rb', line 123 def total = cache + cover + generated_images + artifacts + dictionaries |