Sha256: 1861ed6a69ef64712395fb5b7c7b37a493c8ec20e7c016846e258a2d24dd718b
Contents?: true
Size: 1003 Bytes
Versions: 6
Compression:
Stored size: 1003 Bytes
Contents
# frozen_string_literal: true module GoNative module Plugins module IOS class Verify extend DSL::Serviceable def call assert_valid_plugin! assert_staging_clear! build_framework! end def assert_valid_plugin! return if File.file?('create-framework.sh') raise Error, "File 'create-framework.sh' does not exist. Please make sure this is a valid GoNative plugin directory" end def assert_staging_clear! return if `git status --porcelain`.empty? raise Error, "There are uncommitted changes in the repository" end def build_framework! Utils::UI.info 'Building framework' return if system('sh create-framework.sh >/dev/null 2>/dev/null') raise Error, "Error building framework. Please run the create-framework file manually to fix any errors" end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems