Sha256: ebb2c2b3a3de1217782b9fe0848c4d6394933461ce22bac51281387736e73963
Contents?: true
Size: 801 Bytes
Versions: 1
Compression:
Stored size: 801 Bytes
Contents
# Orderly and Alphabetical requires h, i, n, s, v require 'rubygems' require 'bukkit/download' require 'bukkit/help' require 'bukkit/install' require 'bukkit/new' require 'bukkit/start' require 'bukkit/update' require 'bukkit/version' require 'bukkit/website' module Bukkit opt1 = ARGV[0] # First arg control flow case opt1 when "-v", "--version", "version" puts Bukkit::VERSION_FULL when "-h", "--help", "help" Bukkit::help when "new" Bukkit::new when "start" Bukkit::start when "install" Bukkit::install when "website" Bukkit::website(ARGV[1].downcase) when "update" Bukkit::update else if opt1.nil? puts "You didn't enter a command.\n" Bukkit::help else puts "'#{opt1}' is not a command." puts "Run 'bukkit --help' for a list of commands." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bukkit-0.1.3 | lib/bukkit.rb |