Sha256: ccf1bc857a36a6218af27131573c5d4aa14aba4574bd3da8c6ef9d1b91e5ec3e

Contents?: true

Size: 485 Bytes

Versions: 1

Compression:

Stored size: 485 Bytes

Contents

#!/usr/bin/env ruby

require 'auto_ali_cdn'

def help
  puts <<-EOB
2cdn v#{AutoAliCDN::VERSION}

Options:
  -h, --help        Show help
  -V, --version     Show program version

Basic usage:
  2cdn help    # Show help
  2cdn upload  # Upload resources to Aliyun Oss
  EOB
end


if ARGV.empty? || ARGV[0] =~ /^(-h)|(--help)|(help)$/
  help
  exit
end

if ARGV[0] =~ /^(-v)|(--version)$/
  puts AutoAliCDN::VERSION
  exit
end

if ARGV[0] =~ /^upload$/
  puts "current_path:#{`pwd`}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
2cdn-0.1.0 bin/2cdn