Class: AndParcel::InstallCommand

Inherits:
Command
  • Object
show all
Defined in:
bin/parcel

Instance Method Summary collapse

Methods inherited from Command

inherited

Instance Method Details

#runObject



83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'bin/parcel', line 83

def run
	opts=Trollop::options do
		banner "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