Sha256: b4f42cf8c9e7d22815313e53bace881b16f95adf9215541229d1abb6fc827880

Contents?: true

Size: 770 Bytes

Versions: 10

Compression:

Stored size: 770 Bytes

Contents

module DeployGate
  module Xcode
    module MemberCenters
      class App
        attr_reader :uuid, :member_center

        # @param [String] uuid
        # @return [DeployGate::Xcode::MemberCenters::App]
        def initialize(uuid)
          @member_center = DeployGate::Xcode::MemberCenter.instance
          @uuid = uuid
        end

        # @return [Boolean]
        def created?
          Spaceship.app.all.collect do |app|
            return true if app.bundle_id == @uuid
          end

          false
        end

        # @return [void]
        def create!
          Spaceship.app.create!(bundle_id: @uuid, name: name())
        end

        # @return [String]
        def name
          @uuid.split('.').join(' ')
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
deploygate-0.3.2 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.3.1 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.3.0 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.2.3 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.2.2 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.2.1 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.2.0 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.1.2 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.1.1 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.1.0 lib/deploygate/xcode/member_centers/app.rb