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.



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

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

Instance Method Details

#runObject

def validate!

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

end



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

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