Class: Pod::Command::RepoRsync::Update
- Inherits:
-
Pod::Command::RepoRsync
- Object
- Pod::Command
- Pod::Command::RepoRsync
- Pod::Command::RepoRsync::Update
- Defined in:
- lib/pod/command/repo_rsync/update.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Update
constructor
A new instance of Update.
-
#run ⇒ Object
def validate! super unless @name help! “Updating a spec-repo needs a ‘NAME`.” end end.
Methods inherited from Pod::Command::RepoRsync
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
#run ⇒ Object
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 |