Class: XApp

Inherits:
Object
  • Object
show all
Defined in:
lib/xapp.rb

Constant Summary collapse

VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.init_template(name) ⇒ Object



5
6
7
8
9
10
11
12
# File 'lib/xapp.rb', line 5

def self.init_template(name)
    puts "\n\s\sInit new project..."
    system("unzip", "-q", __dir__ + "/project-template.zip")
    system("mv", "tmp", name)
    puts "\s\s...done!"
    puts "\n\s\sYour project is ready to go in /" + name
    puts "\s\sHint: Don't forget to run: `pod install`\n"
end