Class: AndParcel::InstallCommand
Instance Method Summary collapse
Methods inherited from Command
Instance Method Details
#run ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'bin/parcel', line 83 def run opts=Trollop:: do "parcel install" opt :project, "path to Android project", :type=>:string, :short=>'p', :default=>'.' opt :replace, "if set and parcel is installed already, remove first", :default=>false end Trollop::die "parcel not provided" if ARGV.size==0 parcel=ARGV.shift AndParcel::Parcel.install(parcel, opts) end |