lib/cli/commands/apps.rb in af-0.3.18.6 vs lib/cli/commands/apps.rb in af-0.3.18.7

- old
+ new

@@ -12,10 +12,11 @@ class Apps < Base include VMC::Cli::ServicesHelper include VMC::Cli::ManifestHelper include VMC::Cli::TunnelHelper include VMC::Cli::ConsoleHelper + include VMC::Cli::FileHelper def list apps = client.apps apps.sort! {|a, b| a[:name] <=> b[:name] } return display JSON.pretty_generate(apps || []) if @options[:json] @@ -499,11 +500,11 @@ def find_sockets(path) files = Dir.glob("#{path}/**/*", File::FNM_DOTMATCH) files && files.select { |f| File.socket? f } end - + def upload_app_bits(appname, path, infra) display 'Uploading Application:' upload_file, file = "#{Dir.tmpdir}/#{appname}.zip", nil FileUtils.rm_f(upload_file) @@ -531,10 +532,12 @@ files = Dir.glob('{*,.[^\.]*}') # Do not process .git files files.delete('.git') if files - + + files = afignore("#{path}/.afignore",files) + FileUtils.cp_r(files, explode_dir) find_sockets(explode_dir).each do |s| File.delete s end