class Pod::Command::RepoSq::Update
Subclass of {RepoSq} Provides support for the `pod repo-sq remove` command, which updates the targeted Square SDK repository on 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/update.rb, line 40 def initialize(argv) @name = argv.shift_argument super end
Public Instance Methods
run()
click to toggle source
Updates the podspecs of Square SDK repository on the current user {CocoapodsRepoSq::RepositoryStore}.
# File lib/pod/command/repo_sq/update.rb, line 53 def run UI.section("Updating Square SDK repository `#{@name}`") do repository = repository_store.get(@name) repository.update_specs end end
validate!()
click to toggle source
Validates that the required argument `NAME` is present.
Calls superclass method
# File lib/pod/command/repo_sq/update.rb, line 46 def validate! super help! '`NAME` is required.' unless @name end