Sha256: dab76f8efd9044195383f2490d02784365b78056961486776523e2602f73ad40
Contents?: true
Size: 853 Bytes
Versions: 1
Compression:
Stored size: 853 Bytes
Contents
require "cartup" module CartBinaryUploader class CartupCommandHelper COMMAND_RUN = "run" COMMAND_INIT = "init" COMMAND_HELP = "help" attr_reader :helpDescription def initialize @helpDescription = <<-EOF These are common Cartup commands used in some situations: - init Create an empty cart_uploader.yaml - run uploading the Carthage prebuilts to a cloud storage - help show help instructions and list available subcommands EOF end def handle(command) case command when COMMAND_RUN CartBinaryUploader.run when COMMAND_INIT CartBinaryUploader.init when COMMAND_HELP printHelper else printHelper end end def printHelper puts @helpDescription end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cartup-0.1.6 | lib/cartup_command_helper.rb |