Sha256: c1579f59ec599a570ee17c30fb5514b7858686f4e5fd653081001caf6f908193

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

require 'optparse'
require 'simplecli'

class Andrake::Bin
  include SimpleCLI

  def usage *args
    puts <<doco

  andrake == %{ Android Development Companion }

    Usage:
      andrake command [options]

    Examples:
      andrake info
      andrake build

    Further help:
      andrake commands         # list all available commands
      andrake help <COMMAND>   # show help for COMMAND
      andrake help             # show this help message

doco
  end 

  def info_help
    <<doco
Usage: #{ script_name } info

  Summary:
    Display information about the current Android application
  end
doco
  end
  def info
    puts Andrake::Hybrid.new.info
  end

  def build_help
    <<doco
Usage: #{ script_name } build

  Summary:
    build the current Android application
  end
doco
  end
  def build
    Andrake::Hybrid.new.build
  end

  def emulate_help
    <<doco
Usage: #{ script_name } emulate

  Summary:
    run the current Android application in the emulator
  end
doco
  end
  def emulate
    Andrake::Hybrid.new.build_and_run
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
remi-andrake-0.1.0 lib/andrake/bin.rb