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

Version Path
main-6.3.0 samples/f.rb
main-6.2.3 samples/f.rb
main-6.2.2 samples/f.rb
main-6.2.1 samples/f.rb
main-6.2.0 samples/f.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/main-6.0.0/samples/f.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/main-6.1.0/samples/f.rb
main-6.1.0 samples/f.rb
main-6.0.0 samples/f.rb
main-5.3.2 samples/f.rb
main-5.3.1 samples/f.rb
main-5.2.0 samples/f.rb
main-5.1.1 samples/f.rb
main-5.1.0 samples/f.rb
main-5.0.1 samples/f.rb
main-5.0.0 samples/f.rb
main-4.8.1 samples/f.rb
main-4.8.0 samples/f.rb
main-4.7.7 samples/f.rb
main-4.7.6 samples/f.rb