lib/cli/commands/apps.rb in af-0.3.18.2 vs lib/cli/commands/apps.rb in af-0.3.18.3

- old
+ new

@@ -206,10 +206,18 @@ content = client.app_files(appname, path, instance) display content rescue VMC::Client::NotFound, VMC::Client::TargetError err 'No such file or directory' end - + + def pull(appname, path=nil) + path = File.expand_path(path || appname) + banner = "Pulling last pushed source code: " + display banner, false + client.app_pull(appname, path) + display 'OK'.green + end + def logs(appname) # Check if we have an app before progressing further client.app_info(appname) return grab_all_logs(appname) if @options[:all] && !@options[:instance] instance = @options[:instance] || '0'