Sha256: d2f3078a84d39d8152f721853c74790fc19a01a58fb0b057aa57616a298824be

Contents?: true

Size: 623 Bytes

Versions: 5

Compression:

Stored size: 623 Bytes

Contents

module Pod
  class Command
    class AppGroup < Command
      self.summary = 'Setup app group'
      self.description = 'Setup app group'

      self.arguments = [CLAide::Argument.new('app-group', true)]

      attr_reader :app_group

      def initialize(argv)
        @app_group = argv.shift_argument
        super
      end

      def validate!
        super
        verify_podfile_exists!
        help! 'A app-group is required.' unless app_group
      end

      def run
        store.write :app_group, app_group
      end

      def store
        @store ||= CocoaPods::AppGroup::Store.new
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cocoapods-app_group-0.4.1 lib/pod/command/app_group.rb
cocoapods-app_group-0.4.0 lib/pod/command/app_group.rb
cocoapods-app_group-0.3.0 lib/pod/command/app_group.rb
cocoapods-app_group-0.2.0 lib/pod/command/app_group.rb
cocoapods-app_group-0.1.0 lib/pod/command/app_group.rb