Sha256: 5a1383005e04e64fbef3dd4fd2722e2ce893f8416a11abd6b7cd151f9b4cd9d4

Contents?: true

Size: 813 Bytes

Versions: 16

Compression:

Stored size: 813 Bytes

Contents

require 'keyring_liberator'

module Pod
  class Command
    class Keys
      class Export < Keys
        self.summary = 'Exports commands to recreate the key setup.'

        self.description = <<-DESC
          Gives a list of all the pod keys commands necessary to recreate the key setup on another machine.
        DESC

        def run
          # List all settings for current app
          this_keyring = get_current_keyring
          raise 'Could not load keyring' unless this_keyring
          export_current_keyring this_keyring
        end

        def export_current_keyring(keyring)
          data = keyring.keychain_data
          data.each do |key, value|
            UI.puts "pod keys set #{key} \"#{value}\" #{keyring.name}"
          end
          UI.puts
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cocoapods-keys-2.3.1 lib/pod/command/keys/export.rb
cocoapods-keys-2.3.0 lib/pod/command/keys/export.rb
cocoapods-keys-2.2.1 lib/pod/command/keys/export.rb
cocoapods-keys-2.2.0 lib/pod/command/keys/export.rb
cocoapods-keys-2.1.0 lib/pod/command/keys/export.rb
cocoapods-keys-2.0.7 lib/pod/command/keys/export.rb
cocoapods-keys-2.0.6 lib/pod/command/keys/export.rb
cocoapods-keys-2.0.5 lib/pod/command/keys/export.rb
cocoapods-keys-2.0.4 lib/pod/command/keys/export.rb
cocoapods-keys-2.0.3 lib/pod/command/keys/export.rb
cocoapods-keys-2.0.2 lib/pod/command/keys/export.rb
cocoapods-keys-2.0.1 lib/pod/command/keys/export.rb
cocoapods-keys-2.0.0 lib/pod/command/keys/export.rb
cocoapods-keys-1.7.0 lib/pod/command/keys/export.rb
cocoapods-keys-1.6.1 lib/pod/command/keys/export.rb
cocoapods-keys-1.6.0 lib/pod/command/keys/export.rb