Class: Omnizip::ArchiveCommands
- Inherits:
-
Thor
- Object
- Thor
- Omnizip::ArchiveCommands
show all
- Includes:
- Cli::Shared
- Defined in:
- lib/omnizip/cli.rb
Overview
Archive commands subcommand group
Class Method Summary
collapse
Instance Method Summary
collapse
#format_bytes, #handle_error
Class Method Details
.exit_on_failure? ⇒ Boolean
75
76
77
|
# File 'lib/omnizip/cli.rb', line 75
def exit_on_failure?
true
end
|
Instance Method Details
#create(output, *inputs) ⇒ Object
161
162
163
164
165
|
# File 'lib/omnizip/cli.rb', line 161
def create(output, *inputs)
Omnizip::Commands::ArchiveCreateCommand.new(options).run(output, *inputs)
rescue StandardError => e
handle_error(e)
end
|
209
210
211
212
213
214
|
# File 'lib/omnizip/cli.rb', line 209
def (archive, output_dir = nil)
Omnizip::Commands::ArchiveExtractCommand.new(options).run(archive,
output_dir)
rescue StandardError => e
handle_error(e)
end
|
289
290
291
292
293
|
# File 'lib/omnizip/cli.rb', line 289
def metadata(archive, pattern = nil)
Omnizip::Commands::MetadataCommand.new(options).run(archive, pattern)
rescue StandardError => e
handle_error(e)
end
|