Sha256: 78295826b7b26f48761030eb89c6392d5bdb8c7aafe1b893c7342b139b9a46a7

Contents?: true

Size: 1.96 KB

Versions: 18

Compression:

Stored size: 1.96 KB

Contents

# Copyright 2021 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# 
#     http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

module Pod
  class Command
    # This is an example of a cocoapods plugin adding a top-level subcommand
    # to the 'pod' command.
    #
    # You can also create subcommands of existing or new commands. Say you
    # wanted to add a subcommand to `list` to show newly deprecated pods,
    # (e.g. `pod list deprecated`), there are a few things that would need
    # to change.
    #
    # - move this file to `lib/pod/command/list/deprecated.rb` and update
    #   the class to exist in the the Pod::Command::List namespace
    # - change this class to extend from `List` instead of `Command`. This
    #   tells the plugin system that it is a subcommand of `list`.
    # - edit `lib/cocoapods_plugins.rb` to require this file
    #
    # @todo Create a PR to add your plugin to CocoaPods/cocoapods.org
    #       in the `plugins.json` file, once your plugin is released.
    #
    class Xcremotecache < Command
      self.summary = 'Plugin to integrate CocoaPods with XCRemoteCache.'

      self.description = <<-DESC
        Configuring a project to use XCRemoteCache (along the Pods targets).
      DESC

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

      def validate!
        super
        help! 'A Pod name is required.' unless @name
      end

      def run
        UI.puts "Add your implementation for the cocoapods-xcremotecache plugin in #{__FILE__}"
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
cocoapods-xcremotecache-0.0.18 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.17 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.16 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.15 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.14 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.13 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.12 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.11 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.10 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.9 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.8 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.7 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.6 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.5 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.4 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.3 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.2 lib/cocoapods-xcremotecache/command/xcremotecache.rb
cocoapods-xcremotecache-0.0.1 lib/cocoapods-xcremotecache/command/xcremotecache.rb