Sha256: a8dd726d8e596f0f0963583478613932aece9e6cb78778fedb93f875da874f00
Contents?: true
Size: 853 Bytes
Versions: 13
Compression:
Stored size: 853 Bytes
Contents
#!/usr/bin/env ruby require "rubygems" require "thor" require "thor/group" @@project_name = ARGV[0] class ProjectCreator < Thor::Group include Thor::Actions source_root File.expand_path("../", __FILE__) def initialize(args=[], options={}, config={}) super self.destination_root= "" end def create_project empty_directory @@project_name end def create_www_folder inside @@project_name do puts run "jt_www_js init" end end def create_app_project inside @@project_name do run "jt_android init" end end def create_server_project inside @@project_name do run "rails new server" end end def create_server_project_mobile_web_soft_link inside "#{@@project_name}/server/public" do run "ln -s ../../app/assets/www/ mobile" end end end ProjectCreator.start
Version data entries
13 entries across 13 versions & 1 rubygems