Class: Riserva::Commands::CreateArchive
- Inherits:
-
ApplicationCommand
- Object
- ApplicationCommand
- Riserva::Commands::CreateArchive
- Defined in:
- lib/riserva/commands/create_archive.rb
Instance Method Summary collapse
Methods inherited from ApplicationCommand
Constructor Details
This class inherits a constructor from Riserva::Commands::ApplicationCommand
Instance Method Details
#call(path) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/riserva/commands/create_archive.rb', line 3 def call(path) return broadcast(:invalid) unless super file = archive_name create_archive(file) ? broadcast(:ok, file) : broadcast(:failed) end |