class Stanwood::ProjectCreator
Public Instance Methods
execute(project_name, platform)
click to toggle source
# File lib/stanwood/project_creator.rb, line 5 def execute(project_name, platform) case when platform == "--ios" puts "\nššš" path = File.join(__dir__, 'create.sh') system("sh " + path + " " + project_name) puts "\nššš" exit when platform == "--backend" puts "\nššš We are working on this awesome feature for Backend. Stay tuned!!! ššš\n\n" exit when platform == "--android" puts "\nššš We are working on this awesome feature for Android. Stay tuned!!! ššš\n\n" exit end end
executeTemplates(platform)
click to toggle source
# File lib/stanwood/project_creator.rb, line 22 def executeTemplates(platform) case when platform == "--ios" system("curl \"https://raw.githubusercontent.com/stanwood/Xcode_Templates_iOS/master/Script/install.sh\" | sudo bash") exit when platform == "--backend" puts "\nššš We are working on this awesome feature for Backend. Stay tuned!!! ššš\n\n" exit when platform == "--android" puts "\nššš We are working on this awesome feature for Android. Stay tuned!!! ššš\n\n" exit end end