Skip to content

Commit

Permalink
make it standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdempsey committed Sep 4, 2008
1 parent 153c9a0 commit 83dfb29
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rails2merb.thor → find_rails 100644 → 100755
@@ -1,4 +1,8 @@
#!/usr/bin/env ruby

require 'find'
require 'rubygems'
require 'thor'

# Take a directory, and a list of patterns to match, and a list of
# filenames to avoid
Expand Down Expand Up @@ -31,7 +35,7 @@ end
return results
end

class Rails2Merb < Thor
class FindRails < Thor
desc 'conversion [PATH_TO_APP]', "Checks your code and prints out which methods will need to change"
def conversion(path_to_app='.')
conversions = {
Expand Down Expand Up @@ -62,3 +66,5 @@ class Rails2Merb < Thor
end
end
end

FindRails.new.conversion(ARGV.to_s)

0 comments on commit 83dfb29

Please sign in to comment.