Sha256: b16c15be99ee5e6a803419daa6a382e0411bcf2d2b84f83a2ccd8a594aff707a
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
module Calabash module CLI # @!visibility private module Build # @!visibility private def parse_build_arguments! fail('Should only build test-server for Android') unless @platform.nil? || @platform == :android application = @arguments.shift if application.nil? fail('Must supply application as first parameter to build', :build) elsif !File.exists?(application) fail("File '#{application}' does not exist", :build) else extension = File.extname(application) application_path = File.expand_path(application) case extension when '.apk' set_platform!(:android) Calabash::Android::Build::Builder.new(application_path).build when '.ipa', '.app' set_platform!(:ios) fail('Should only build test-server for Android') else fail('Application must be an apk', :build) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
calabash-2.0.0.pre6 | lib/calabash/cli/build.rb |
calabash-2.0.0.pre5 | lib/calabash/cli/build.rb |
calabash-2.0.0.pre4 | lib/calabash/cli/build.rb |
calabash-2.0.0.pre3 | lib/calabash/cli/build.rb |