Sha256: aae2e09fcdf3c15f897b020efb77146eb741ad06face4af5bafc7a2b0bb9cd58
Contents?: true
Size: 602 Bytes
Versions: 34
Compression:
Stored size: 602 Bytes
Contents
require 'main' ARGV.replace %W( compress /data ) Main { argument('directory'){ description 'the directory to operate on' } option('force'){ description 'use a bigger hammer' } def run puts 'this is how we run when no mode is specified' end mode 'compress' do option('bzip'){ description 'use bzip compression' } def run puts 'this is how we run in compress mode' end end mode 'uncompress' do option('delete-after'){ description 'delete orginal file after uncompressing' } def run puts 'this is how we run in un-compress mode' end end }
Version data entries
34 entries across 33 versions & 2 rubygems