Sha256: 0a5449ea48f8b600d7dd5652e88c2ddac7b135a33a4cce6d50a691bce1553e28
Contents?: true
Size: 1.19 KB
Versions: 5
Compression:
Stored size: 1.19 KB
Contents
require 'fileutils' require 'nokogiri' require 'logger' require 'colorize' require_relative 'skeleton/version' require_relative 'skeleton/base' require_relative 'skeleton/ios' require_relative 'skeleton/android' module Skeleton class Skeleton attr_accessor :platform, :udid, :bundle_id def initialize(options) self.platform = options.platform self.udid = options.udid self.bundle_id = options.bundle @driver = ios? ? IOS.new(options) : Android.new(options) end def platform=(platform) platform.nil? || platform.downcase! if platform != 'ios' && platform != 'android' raise 'Set platform, ios or android [-p arg]' end @platform = platform end def udid=(udid) if udid.nil? raise 'Not set udid [-u arg]' end @udid = udid end def bundle_id=(bundle_id) if @platform == 'ios' && bundle_id.nil? raise 'Not set bundle_id [-b arg]' end @bundle_id = bundle_id end def run @driver.precondition @driver.skeletoner @driver.log.info("#{Base::PAGE_OBJECTS_FOLDER}/. 😍") end def ios? @platform == 'ios' end def android? @platform == 'android' end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
skeleton-ui-0.0.12 | lib/skeleton.rb |
skeleton-ui-0.0.11 | lib/skeleton.rb |
skeleton-ui-0.0.10 | lib/skeleton.rb |
skeleton-ui-0.0.8 | lib/skeleton.rb |
skeleton-ui-0.0.7 | lib/skeleton.rb |