lib/godofwar/builder.rb
def war
      src_dir, dst_war = @war_dir_path, "#{@war_dir_path}../"
      Zip::File.open(dst_war, Zip::File::CREATE) do |zip|
        Dir.glob[File.join(src_dir, '/**/*')].each do |file|
          zip.add(file.sub(src_dir, ''), file)
        end
      end
    end
# build_war build the WAR file by recursively the source directory content then zip it
build_war build the WAR file by recursively the source directory content then zip it
build_war build the WAR file by recursively the source directory content then zip it
def war
      src_dir, dst_war = @war_dir_path, "#{@war_dir_path}../"
      Zip::File.open(dst_war, Zip::File::CREATE) do |zip|
        Dir.glob[File.join(src_dir, '/**/*')].each do |file|
          zip.add(file.sub(src_dir, ''), file)
        end
      end
    end
def war src_dir , dst_war = @war_dir_path , "#{@war_dir_path}../" Zip :: File . open ( dst_war , Zip :: File :: CREATE ) do | zip | Dir . glob [ File . join ( src_dir , '/**/*' ) ] . each do | file | zip . add ( file . sub ( src_dir , '' ) , file ) end end end
build_war build the WAR file by recursively the source directory content then zip it
build_war build the WAR file by recursively the source directory content then zip it