Class: ClayburnConsole
- Inherits:
-
Object
- Object
- ClayburnConsole
- Defined in:
- bin/clayburn-gen
Class Method Summary collapse
Class Method Details
.options ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'bin/clayburn-gen', line 8 def self. b = <<-E Clayburn MVC ============ Usage: clayburn-gen generator_name [options] available generators app Generates a new "jump start" Clayburb application controller Generates a new controller. flat Generates a new clayburn app with all the resource in one file. E end |
.parse(args) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'bin/clayburn-gen', line 23 def self.parse(args) opt = %w[app controller flat] if args.length != 2 || !opt.include?(args[0]) puts exit end p = Clayburn.new method = args[0] p.send(method,args[1]) end |