Class: Pod::Command::RepoHg::Update

Inherits:
Pod::Command::RepoHg show all
Defined in:
lib/pod/command/repo_hg.rb

Overview

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

Instance Method Summary collapse

Methods inherited from Pod::Command::RepoHg

#dir

Constructor Details

#initialize(argv) ⇒ Update

Returns a new instance of Update.



60
61
62
63
# File 'lib/pod/command/repo_hg.rb', line 60

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

Instance Method Details

#runObject



72
73
74
# File 'lib/pod/command/repo_hg.rb', line 72

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

#validate!Object



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

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