Sha256: dc971f7065c3bc7b19b0e4b89f6e8521a3fa5fb06aacb4b57f5351071b0e278f

Contents?: true

Size: 393 Bytes

Versions: 20

Compression:

Stored size: 393 Bytes

Contents

# frozen_string_literal: true

module GoNative
  module Plugins
    module IOS
      class Verify
        extend DSL::Serviceable

        def call
          assert_staging_clear!
        end

        def assert_staging_clear!
          return if `git status --porcelain`.empty?

          raise Error, "There are uncommitted changes in the repository"
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
gonative-cli-1.4.4 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.4.3 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.4.2 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.4.1 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.4.0 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.3.9 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.3.8 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.3.7 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.3.6 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.3.5 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.3.4 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.3.3 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.3.2 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.3.1 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.3.0 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.2.4 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.2.3 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.2.2 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.2.1 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.2.0 lib/gonative/plugins/ios/verify.rb