Class: Pod::Command::RepoSvn::Update

Inherits:
Pod::Command::RepoSvn show all
Defined in:
lib/pod/command/repo_svn.rb

Overview

———————————————————————–#

Instance Method Summary collapse

Methods inherited from Pod::Command::RepoSvn

#dir

Constructor Details

#initialize(argv) ⇒ Update

Returns a new instance of Update.



61
62
63
64
# File 'lib/pod/command/repo_svn.rb', line 61

def initialize(argv)
  @name = argv.shift_argument
  super
end

Instance Method Details

#runObject



73
74
75
# File 'lib/pod/command/repo_svn.rb', line 73

def run
  update(@name, true) #todo: dusty
end

#validate!Object



66
67
68
69
70
71
# File 'lib/pod/command/repo_svn.rb', line 66

def validate!
  super
  unless @name
    help! "Updating a spec-repo needs a `NAME`."
  end
end