Class: Pod::Command::RepoHg::Update
- Inherits:
-
Pod::Command::RepoHg
- Object
- Pod::Command
- Pod::Command::RepoHg
- Pod::Command::RepoHg::Update
- Defined in:
- lib/pod/command/repo_hg.rb
Overview
———————————————————————–#
Instance Method Summary collapse
-
#initialize(argv) ⇒ Update
constructor
A new instance of Update.
- #run ⇒ Object
- #validate! ⇒ Object
Methods inherited from Pod::Command::RepoHg
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
#run ⇒ Object
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 |