Sha256: edc5e3ce1c8bdb4557641ae329c2dce5b6a6421a7dc98b14a80508e73317bea8
Contents?: true
Size: 674 Bytes
Versions: 5
Compression:
Stored size: 674 Bytes
Contents
## # Example Thor instance # module ExtJS class CLI < Thor desc "install", "Download and install the extjs library to the path specified (defaults to extjs-x.x.x)" method_options :cachefly => :boolean, :github => :boolean def install(path) raise ExtJS::InstallError.new("Please specify github OR cachefly") if options.cachefly? and options.github? if options.cachefly? ExtJS.ui.warn('loading from cachefly') elsif options.github? ExtJS.ui.warn('loading from github') end ExtJS.ui.confirm('install') end def initialize(*) ExtJS.shell = shell super end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
extjs-0.1.4 | lib/extjs/cli.rb |
extjs-0.1.3 | lib/extjs/cli.rb |
extjs-0.1.2 | lib/extjs/cli.rb |
extjs-0.1.1 | lib/extjs/cli.rb |
extjs-0.1.0 | lib/extjs/cli.rb |