Commit f54a0b3f authored by Fabio Pelosin's avatar Fabio Pelosin

[Docs] More cleanup.

parent 8d87150a
......@@ -64,12 +64,24 @@ module Pod
private
# Checks that the podfile exists.
#
# @raise If the podfile does not exists.
#
# @return [void]
#
def verify_podfile_exists!
unless config.podfile
raise Informative, "No `Podfile' found in the current working directory."
end
end
# Checks that the lockfile exists.
#
# @raise If the lockfile does not exists.
#
# @return [void]
#
def verify_lockfile_exists!
unless config.lockfile
raise Informative, "No `Podfile.lock' found in the current working directory, run `pod install'."
......
......@@ -36,6 +36,8 @@ module Pod
end
end
#-----------------------------------------------------------------------#
class New < List
self.summary = 'Lists pods introduced in the master spec-repo since the last check'
......
......@@ -134,7 +134,6 @@ module Pod
#
def master_repo_is_push?
return false unless master_repo_dir.exist?
Dir.chdir(master_repo_dir) do
url = git('config --get remote.origin.url')
url.chomp == read_write_url
......
......@@ -190,7 +190,7 @@ module Pod
#-------------------------------------------------------------------------#
# Provides support for fetching a specification file from a SvnSource
# Provides support for fetching a specification file from a Svn source
# remote.
#
# Supports all the options of the downloader (is similar to the git key of
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment