class Pod::Command::RepoSq::Remove

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.

Public Class Methods

new(argv) click to toggle source
Calls superclass method
# File lib/pod/command/repo_sq/remove.rb, line 40
def initialize(argv)
  @name = argv.shift_argument
  super
end

Public Instance Methods

run() click to toggle source

Removes a Square SDK repository from the current user {CocoapodsRepoSq::RepositoryStore}.

# File lib/pod/command/repo_sq/remove.rb, line 53
def run
  UI.section("Removing Square SDK repository `#{@name}`") do
    repository_store.remove(@name)
  end
end
validate!() click to toggle source

Validates that the required argument `NAME` is present.

Calls superclass method
# File lib/pod/command/repo_sq/remove.rb, line 46
def validate!
  super
  help! '`NAME` is required.' unless @name
end