Class: VivlioStarter::CLI::CleanCommands::CleanSummary

Inherits:
Data
  • Object
show all
Defined in:
lib/vivlio_starter/cli/clean.rb

Overview

削除結果の内訳。表示は呼び出し側の責務とし、ドメイン層は件数を返すだけにする。 vs build の Step 0 も execute_clean を呼ぶため、ここで結果報告を出すと ビルドのたびに「削除しました」が混ざってしまう。

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#artifactsObject (readonly)

Returns the value of attribute artifacts

Returns:

  • (Object)

    the current value of artifacts



122
123
124
# File 'lib/vivlio_starter/cli/clean.rb', line 122

def artifacts
  @artifacts
end

#cacheObject (readonly)

Returns the value of attribute cache

Returns:

  • (Object)

    the current value of cache



122
123
124
# File 'lib/vivlio_starter/cli/clean.rb', line 122

def cache
  @cache
end

#coverObject (readonly)

Returns the value of attribute cover

Returns:

  • (Object)

    the current value of cover



122
123
124
# File 'lib/vivlio_starter/cli/clean.rb', line 122

def cover
  @cover
end

#dictionariesObject (readonly)

Returns the value of attribute dictionaries

Returns:

  • (Object)

    the current value of dictionaries



122
123
124
# File 'lib/vivlio_starter/cli/clean.rb', line 122

def dictionaries
  @dictionaries
end

#generated_imagesObject (readonly)

Returns the value of attribute generated_images

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


124
# File 'lib/vivlio_starter/cli/clean.rb', line 124

def none? = total.zero?

#totalObject



123
# File 'lib/vivlio_starter/cli/clean.rb', line 123

def total = cache + cover + generated_images + artifacts + dictionaries