class Pod::Command::RepoSvn::Add
Public Class Methods
new(argv)
click to toggle source
Calls superclass method
# File lib/pod/command/repo_svn/add.rb, line 17 def initialize(argv) @name, @url = argv.shift_argument, argv.shift_argument super end
Public Instance Methods
run()
click to toggle source
# File lib/pod/command/repo_svn/add.rb, line 29 def run UI.section("Checking out spec-repo `#{@name}` from `#{@url}` using svn") do config.repos_dir.mkpath Dir.chdir(config.repos_dir) do command = "checkout --non-interactive --trust-server-cert '#{@url}' #{@name}" #!svn(command) `svn #{command}` end # SourcesManager.check_version_information(dir) #todo: TEST ME Config.instance.sources_manager.sources([dir.basename.to_s]).each(&:verify_compatibility!) #todo: TEST ME end end
validate!()
click to toggle source
Calls superclass method
# File lib/pod/command/repo_svn/add.rb, line 22 def validate! super unless @name && @url help! "Adding a spec-repo needs a `NAME` and a `URL`." end end