Sha256: eb52ba326d3727d20de724dde1d7cf2d92cc311da6f534a6dab21cc92a8407da
Contents?: true
Size: 1022 Bytes
Versions: 1
Compression:
Stored size: 1022 Bytes
Contents
#!/usr/bin/env ruby require 'aipim-rails' path = File.expand_path(File.dirname(__FILE__))+"/../" if ARGV[0] == 'generate' system('mkdir -p aipim') system('mkdir -p aipim/screenshots') system('cp '+path+'lib/screenshot.rb features/support/') elsif ARGV[0] == 'html' %x[rm -rf aipim/markdown] files = [] ARGV.delete_at(0) ARGV.each do |arg| ls = %x[ls #{arg}].split("\n") ls.each do |f| f = f.split('/') f.delete_at(0) f = f.join('/') files << f if !(f =~ /.feature\z/).nil? end end files.each { |f| Parser.init(f) } files.each { |f| ConvertToHtml.init(f) } system('cp '+path+'lib/bootstrap.min.css aipim/html') system('cp '+path+'lib/jquery-1.9.1.js aipim/html') elsif ARGV[0] == 'markdown' || ARGV[0] == 'md' %x[rm -rf aipim/markdown] files = [] ARGV.delete_at(0) ARGV.each do |arg| ls = %x[ls #{arg}].split("\n") ls.each do |f| f = f.split('/') f.delete_at(0) f = f.join('/') files << f if !(f =~ /.feature\z/).nil? end end files.each { |f| Parser.init(f) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aipim-rails-0.0.40 | bin/aipim |