Sha256: 7f0fe41a091402d4c14d493201147c4561850e7ce77151b43db76a5b84414b37
Contents?: true
Size: 1.84 KB
Versions: 1
Compression:
Stored size: 1.84 KB
Contents
#!/usr/bin/env ruby # coding: utf-8 require 'thor' require 'cuesmash' require 'cuesmash/setup' require 'byebug' module Cuesmash CONFIG_FILE = '.cuesmash.yml' class Start < Thor desc 'init', 'set up the project' def init Cuesmash::Setup.setup end desc "test OPTIONS", "run the tests" long_desc <<-LONGDESC --tags -t the tags to pass to cucumber, for multiple tags pass one per tag\n --output -o The output directory for the test report\n --format -f The format of the test report\n --server -s LONGDESC method_option :scheme, type: :string, aliases: "-s", desc: "the Xcode scheme to build" method_option :tags, type: :array, aliases: "-t", desc: "the tags to pass to cucumber, for multiple tags pass one per tag" method_option :debug, type: :boolean, default: false, aliases: "-d", desc: "turn on debug output." # method_option :server, type: :string, aliases: "-r", desc: "" def test # load up the .cuesmash.yml config. If we don't find one then bail if File.exists?(CONFIG_FILE) config = YAML.load_file(CONFIG_FILE) if File.exists?(CONFIG_FILE) else say "There is no '.cuesmash.yml' file. Please create one and try again.", :red return end config['devices'].each do |device, oses| oses.each do |os| say "\n============================\ntesting iOS #{os} on #{device}", :green # byebug Cuesmash::Command.execute(device: device, os: os, server: options[:server], tags: options[:tags], scheme: options[:scheme], debug: options[:debug]) end end # device each end # test desc "demo FILE", "an example task" method_option :delete, aliases: "-d", desc: "Delete the file after parsing it" def demo puts "options == #{options}" end end # Start class end # module Cuesmash
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cuesmash-0.1.0 | lib/cuesmash/start.rb |