Sha256: a40fd5b66a71d1fad4a7c93ae06a615b77a20d68f2019300a05d7fae748365c2
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
require 'optparse' require 'simplecli' class Android::Bin include SimpleCLI def usage *args puts <<doco android == %{ Android Development Companion } Usage: android command [options] Examples: android info Further help: android commands # list all available commands android help <COMMAND> # show help for COMMAND android help # show this help message doco end def current_application if Android::Application.is_application? '.' Android::Application.new '.' else puts "Current directory doesn't appear to be the root of an Android application." exit end end def info_help <<doco Usage: #{ script_name } info Summary: Display information about the current Android application end doco end def info puts current_application.info end def build_help <<doco Usage: #{ script_name } build Summary: build the current Android application end doco end def build current_application.build end def emulate_help <<doco Usage: #{ script_name } emulate Summary: run the current Android application in the emulator end doco end def emulate current_application.reinstall current_application.run end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
remi-andrake-0.1.0 | lib/android/bin.rb |