class CartBinaryUploader::CartupCommandHelper

Constants

COMMAND_HELP
COMMAND_INIT
COMMAND_RUN

Attributes

help_description[R]

Public Class Methods

new() click to toggle source
# File lib/cartup_command_helper.rb, line 11
    def initialize
      @help_description = <<-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

Public Instance Methods

handle(command) click to toggle source
# File lib/cartup_command_helper.rb, line 20
def handle(command)
  case command
  when COMMAND_RUN
    CartBinaryUploader.run
  when COMMAND_INIT
    CartBinaryUploader.init
  when COMMAND_HELP
    print_helper
  else
    print_helper
  end
end
print_helper() click to toggle source