Sha256: 4515e6434f6c9a75d35909e330c41b0a3737faa6f587ba982878cec6819db0b1

Contents?: true

Size: 1.53 KB

Versions: 1

Compression:

Stored size: 1.53 KB

Contents

module Stanwood

  class ProjectCreator

    def execute(project_name, platform)
      case
      when platform == "--ios"
        puts "\nšŸš€šŸš€šŸš€"
        system("ls")
        system("sh /Users/talzion/Stanwood/stanwood-xctemplate/lib/stanwood/create.sh " + project_name)
        # system("git clone git@github.com:stanwood/Xcode_Templates_iOS.git /echo tmp/xcode_template")
        #
        # system("Running...")
        # system("chmod +x ruby /tmp/xcode_template/Template/configure ", project_name)
        #
        # system("echo Finishing installation")
        # system("rm -rf /tmp/xcode_template")
        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

    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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stanwood-0.3.0 lib/stanwood/project_creator.rb