Sha256: 08e67fef7758fe600a8a669b5648f22d2530e0175ab4b5172ef74f07e12dc3e1
Contents?: true
Size: 1.86 KB
Versions: 3
Compression:
Stored size: 1.86 KB
Contents
# coding: utf-8 # # This source file is part of the cocoapods-repo-sq plugin under the Apache 2.0 # license: # # Copyright 2018 Square Inc. # # 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 class RepoSq < Command # Subclass of {RepoSq} # Provides support for the `pod repo-sq remove` command, which removes # the targeted Square SDK repository from the user's cocoapods local # repositories store. class Remove < RepoSq self.summary = 'Remove a Square SDK repository' self.description = <<-DESC Removes the Square SDK repository for your application `NAME`. DESC self.arguments = [ CLAide::Argument.new('NAME', true), ] def initialize(argv) @name = argv.shift_argument super end # Validates that the required argument `NAME` is present. def validate! super help! '`NAME` is required.' unless @name end # Removes a Square SDK repository from the current user # {CocoapodsRepoSq::RepositoryStore}. def run UI.section("Removing Square SDK repository `#{@name}`") do repository_store.remove(@name) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cocoapods-repo-sq-0.0.2.14 | lib/pod/command/repo_sq/remove.rb |
cocoapods-repo-sq-0.0.1.9 | lib/pod/command/repo_sq/remove.rb |
cocoapods-repo-sq-0.0.1.6 | lib/pod/command/repo_sq/remove.rb |