2 puts 'create.rb subdir controller {filename=create.json}'
\r
5 domain = 'http://localhost:3000'
\r
8 f = ARGV[2] ? ARGV[2].to_s+'_create' : 'create'
\r
9 path = File.expand_path(File.dirname(__FILE__))
\r
10 filename = path + "/#{user}/#{ctl}/#{f}.json"
\r
12 cmd = "curl -d @#{filename} #{domain}/#{ctl}.json -X POST -H \"Content-Type: application/json\""
\r