Sha256: a01bfca13fc02df2c6a5fd002cc30532987614627bbd780b1dcc843f52ed916a

Contents?: true

Size: 839 Bytes

Versions: 9

Compression:

Stored size: 839 Bytes

Contents

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

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

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

          false
        end

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
deploygate-0.9.1 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.9.0 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.8.6 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.8.5 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.8.4 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.8.3 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.8.2 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.8.1 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.8.0 lib/deploygate/xcode/member_centers/app.rb