Sha256: 00e52a349aa4c87a897e147427bec269d8125a300504d94e81a402ea2a92cc92

Contents?: true

Size: 542 Bytes

Versions: 2

Compression:

Stored size: 542 Bytes

Contents

require 'open3'

module XcMetricsAggregator
    ROOT_DIR = File.expand_path("..", __dir__)
    APPLE_SCRIPT_EXECUTION = "osascript"
    APPLE_SCRIPT_FILE = "xcode_metrics_automation.applescript"

  class Crawler
    def self.execute
        script_fullpath = File.join(ROOT_DIR, APPLE_SCRIPT_FILE)
        command ="#{APPLE_SCRIPT_EXECUTION} #{script_fullpath}"
        Open3.popen3(command) do |i, o, e, w|
          o.each do |line| puts line end
          e.each do |line| puts line end
          puts w.value
        end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xc_metrics_aggregator-0.2.0 lib/xc_metrics_aggregator/crawler.rb
xc_metrics_aggregator-0.1.0 lib/xc_metrics_aggregator/crawler.rb