Sha256: 2fdf7c399ea42fed883f4573a01ed08aa6953b85a31a2c069af96a1ee6543c32
Contents?: true
Size: 443 Bytes
Versions: 4
Compression:
Stored size: 443 Bytes
Contents
#!/usr/bin/env ruby require_relative '../lib/js_generator' if ARGV.length != 1 raise ArgumentError.new("wrong number of arguments (given #{ARGV.length}, expected 1)") end args = ARGV[0].split('/') if args.length == 2 setup_js = JsGenerator::SetupJs.new(model_name: args[0], action_name: args[1]) setup_js.run else setup_js = JsGenerator::SetupJs.new(namespace: args[0], model_name: args[1], action_name: args[2]) setup_js.run end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
js_generator-0.1.4 | bin/js_generate |
js_generator-0.1.3 | bin/js_generate |
js_generator-0.1.2 | bin/js_generate |
js_generator-0.1.1 | bin/js_generate |