Module: WeexBuilder::Platform
- Defined in:
- lib/platform.rb
Class Method Summary collapse
Class Method Details
.add(platform, name) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/platform.rb', line 9 def add(platform, name) Dir.mkdir("Platforms") unless Dir.exist?('Platforms') return puts "The platform already exist." if WeexBuilder::Project.platform_exist?(platform) Dir.mkdir("Platforms/#{platform}") if /iOS/ =~ platform WeexBuilder::IOSProject.create(name) end end |