Sha256: 11a36b75ba0565344f49013fbbbb15c922d85fd57e39b371649d2a2afd6bbc30

Contents?: true

Size: 409 Bytes

Versions: 33

Compression:

Stored size: 409 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

33 entries across 33 versions & 1 rubygems

Version Path
gonative-cli-1.1.2 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.1.1 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.1.0 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.0.6 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.0.5 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.0.4 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.0.3 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.0.2 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.0.1 lib/gonative/plugins/ios/verify.rb
gonative-cli-1.0.0 lib/gonative/plugins/ios/verify.rb
gonative-cli-0.9.3 lib/gonative/plugins/ios/verify.rb
gonative-cli-0.9.2 lib/gonative/plugins/ios/verify.rb
gonative-cli-0.9.1 lib/gonative/plugins/ios/verify.rb
gonative-cli-0.9.0 lib/gonative/plugins/ios/verify.rb
gonative-cli-0.8.1 lib/gonative/plugins/ios/verify.rb
gonative-cli-0.8.0 lib/gonative/plugins/ios/verify.rb
gonative-cli-0.7.17 lib/gonative/plugins/ios/verify.rb
gonative-cli-0.7.16 lib/gonative/plugins/ios/verify.rb
gonative-cli-0.7.15 lib/gonative/plugins/ios/verify.rb
gonative-cli-0.7.14 lib/gonative/plugins/ios/verify.rb