Sha256: 6445712356e41f9ceff7faf82b554197acbf719b98f761a9f886cb0ff2589756

Contents?: true

Size: 809 Bytes

Versions: 1

Compression:

Stored size: 809 Bytes

Contents

#!/usr/bin/env ruby

require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib transender]))

$:.unshift File.join(File.dirname(__FILE__))

#arguments
transform = ARGV[0]
app_title = ARGV[1] 
out_dir = ARGV[2]

def usage
  puts "Usage:\n"
  puts "~>transender git://github.com/somebodyatgithub/someiphoneipodproject.git myCoolProject /myCool/Path/To/Projects/Path/"
  puts "transform - a git repository \n"
  puts "app_title - a fresh app / cloned from transform, renamed and replaced\n"
  puts "out_dir - where to put fresh app's files\n"
end

unless transform&&app_title&&out_dir
  usage
  exit
end

require 'benchmark'

time = Benchmark.realtime {Transender::Ji.transform_and_zip({:transform => transform, :app_title => app_title, :ji_path => out_dir})}
puts "Realtime used : #{time}sec"

# EOF

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mihael-transender-0.1.0 bin/transender