Class: Pod::Command::RepoRsync::Update

Inherits:
Pod::Command::RepoRsync show all
Defined in:
lib/pod/command/repo_rsync/update.rb

Instance Method Summary collapse

Methods inherited from Pod::Command::RepoRsync

#dir

Constructor Details

#initialize(argv) ⇒ Update

Returns a new instance of Update.



15
16
17
18
# File 'lib/pod/command/repo_rsync/update.rb', line 15

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

Instance Method Details

#runObject

def validate!

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

end



27
28
29
# File 'lib/pod/command/repo_rsync/update.rb', line 27

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