Class: Pbind::Command::View

Inherits:
Pbind::Command show all
Defined in:
lib/pbind/command/view.rb

Instance Method Summary collapse

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

#runObject



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