Method: VMC::Cli::Command::Apps#files

Defined in:
lib/cli/commands/apps.rb

#files(appname, path = '/') ⇒ Object



204
205
206
207
208
209
210
211
# File 'lib/cli/commands/apps.rb', line 204

def files(appname, path='/')
  return all_files(appname, path) if @options[:all] && !@options[:instance]
  instance = @options[:instance] || '0'
  content = client.app_files(appname, path, instance)
  display content
rescue VMC::Client::NotFound, VMC::Client::TargetError
  err 'No such file or directory'
end