Sha256: 9fe9fc82ec36fd6ced34ee14ce2ca154d1ab9d50f90d2325061785c78ff39741
Contents?: true
Size: 447 Bytes
Versions: 4
Compression:
Stored size: 447 Bytes
Contents
#!/usr/bin/env ruby -W require_relative 'platform_ios' module WeexBuilder module Platform module_function 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 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
weexbuilder-0.0.4 | lib/platform.rb |
weexbuilder-0.0.3 | lib/platform.rb |
weexbuilder-0.0.2 | lib/platform.rb |
weexbuilder-0.0.1 | lib/platform.rb |