Class: KRL_CMD::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/test.rb

Class Method Summary collapse

Class Method Details

.go(args) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/test.rb', line 4

def self.go(args)
  type = args[0] || "bookmarklet"
  args.shift if args
  
  require LIB_DIR + 'generate'
  if type == "bookmarklet"
    KRL_CMD::Generate.gen_bookmarklet(args, "dev")
  elsif type == "infocard"
    KRL_CMD::Generate.gen_infocard(args, "dev")
  else
    puts "Unknown test endpoint (#{type})"
  end
  
end