Class: ExtJS::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/extjs/cli.rb

Instance Method Summary collapse

Constructor Details

#initializeCLI

Returns a new instance of CLI.



22
23
24
25
# File 'lib/extjs/cli.rb', line 22

def initialize(*)
  ExtJS.shell = shell
  super
end

Instance Method Details

#install(path) ⇒ Object

Raises:

  • (ExtJS::InstallError)


9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/extjs/cli.rb', line 9

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