Class: Pbind::Command::View
- Inherits:
-
Pbind::Command
- Object
- CLAide::Command
- Pbind::Command
- Pbind::Command::View
- Defined in:
- lib/pbind/command/view.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ View
constructor
A new instance of View.
- #run ⇒ Object
- #validate! ⇒ Object
Methods inherited from Pbind::Command
options, report_error, #verify_project_exists
Constructor Details
#initialize(argv) ⇒ View
Returns a new instance of View.
18 19 20 21 |
# File 'lib/pbind/command/view.rb', line 18 def initialize(argv) super @plist = argv.shift_argument end |
Instance Method Details
#run ⇒ Object
28 29 30 31 |
# File 'lib/pbind/command/view.rb', line 28 def run parse_plist(@plist) super end |
#validate! ⇒ Object
23 24 25 26 |
# File 'lib/pbind/command/view.rb', line 23 def validate! help! 'The plist is required.' unless @plist help! 'The plist is not exists.' unless File.exists?(@plist) end |