Sha256: afe3b149a4265023772871c280dd8f171d724b232dc3b11c619dc33d9c8dfa56

Contents?: true

Size: 798 Bytes

Versions: 20

Compression:

Stored size: 798 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?
          @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

20 entries across 20 versions & 1 rubygems

Version Path
deploygate-0.7.0 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.6.8 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.6.7 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.6.6 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.6.5 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.6.4 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.6.3 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.6.2 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.6.1 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.6.0 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.5.6 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.5.5 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.5.4 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.5.3 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.5.2 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.5.1 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.5.0 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.4.1 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.4.0 lib/deploygate/xcode/member_centers/app.rb
deploygate-0.3.3 lib/deploygate/xcode/member_centers/app.rb